in reply to Re^2: search/grep perl/*nix
in thread search/grep perl/*nix
Hi, haukex will provide his own answer no doubt, but: No, the memory footprint should not grow, since
does *not* slurp the entire file into memory, but reads it one line at a time. See, for example, https://perldoc.perl.org/perlfaq5.html#How-can-I-read-in-an-entire-file-all-at-once%3f for a discussion of the issue.while ( my $line = <$FILEHANDLE> ) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: search/grep perl/*nix
by Laurent_R (Canon) on Nov 25, 2017 at 18:57 UTC | |
by 1nickt (Canon) on Nov 25, 2017 at 20:23 UTC |