in reply to Merge log files causing Out of Memory
open my $handle,'<',$filename or die "Can't open filename: $!"; while (my $line=<$handle>) { chomp $line; if ($line is interesting ...) { # do something with $line ... } } close $handle;
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Merge log files causing Out of Memory (just a note on ampersand)
by Discipulus (Canon) on Aug 25, 2016 at 10:26 UTC | |
by hippo (Archbishop) on Aug 25, 2016 at 10:57 UTC | |
by Discipulus (Canon) on Aug 25, 2016 at 11:16 UTC | |
by afoken (Chancellor) on Aug 26, 2016 at 06:20 UTC | |
by choroba (Cardinal) on Aug 25, 2016 at 20:39 UTC | |
|
Re^2: Merge log files causing Out of Memory
by malokam (Novice) on Aug 25, 2016 at 16:10 UTC |