Why cat the whole file just to discard all but the first four lines:
my @foo = `head -4 very_large_file`;
In reply to Re^3: Slicing the output of a command
by BrowserUk
in thread Slicing the output of a command
by fbicknel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |