while (defined $line = <$inputFileHandle>)
Because the = operator has higher precedence than the defined operator you need to either enclose the assignment in parentheses:
while (defined( $line = <$inputFileHandle> ))
Or because perl does the defined test by default then just omit it and perl will do the right thing:
while ($line = <$inputFileHandle>)
In reply to Re^2: Can I split a 10GB file into 1 GB sizes using my repeating data pattern
by jwkrahn
in thread Can I split a 10GB file into 1 GB sizes using my repeating data pattern
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |