in reply to Re: Split file, first 30 lines only
in thread Split file, first 30 lines only

for my $line (`head -30 $fullfile`)

Consider that not every OS has the head command, this suggested route of using backticks to run a system command isn't portable.

Replies are listed 'Best First'.
Re^3: Split file, first 30 lines only
by 13gurpreetsingh (Novice) on Mar 01, 2017 at 13:30 UTC
    That's correct. That is why I said "If on unix".

      I don't see a logical argument for suggesting backticks to a system command, when safer, portable options exist.