Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Perl Script stops working properly during operation

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Victoryflet
Posts: 5
Joined: 2005-06-28 13:34

Perl Script stops working properly during operation

#1 Post by Victoryflet »

To and perl masters. I have recently learned a bit of perl and wrote a program that goes and changes lines in every file that meets a certian criteria. I then record the file that was changed in a log file with the full path name.

When tested on small directories with a few hundred files it works great. No problems. When I run it on every file that needs to be checked (~18,000) of them it runs into problems about 1/3 of the way through the program. (It stops recording the right path to the log file and misses files that need to be changed)

I belive it to be a memory related issue since if I run the program on each directory individually without letting it recurse through the master file list it works great too. Are there any know memory issues with Perl and any ways to fix them.
-Victoryflet

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

If your script is not too large, could you please post it here?

Post Reply