here is a snippet of the script, doing the part of:1. reading the file2. writing each line to it's destination target file.3. chopping the line to to the 1st max chars (from the conf file)..
if (!open (LOGFILE, $file)) { fatal ("can't open $file\nfile corrupted?\n"); (fatal is just a sub th
While the foreach() may be slow, I don't see any way around it if it is
possible that the date codes may change. Can you show some code? People may have
ideas on how to improve performance of what you've already
written.
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[
eyal edri wrote:
> what i did and it's not good enough:
>
> 1. i've implemented this using ordinary "foreach $line (@lines)" file
> processing, which is very slow when handeling large files.
> and then it's quite easy. (using substr and such...).
>
> what i think needs to be done (and here i