in reply to a few basic questions
if ($num % 2 == 0) { #even } else { #odd }
2) you'll probably have to use the eof() instead of < >
You'll have to deal with the condition where one file is longer than the other below this while.while(!eof(FILE1) && !eof(FILE2) { my $file1 = <FILE1>; my $file2 = <FILE2>; }
3) if localized it will alter the subsiquent reads for only that pass through the loop.
First line ends with "\n", second line ends with "\t", third ends with "\r", and so on.my @eol = ("\n","\t","\r"); # etc, etc while(<FILE>) { local $/ = shift @eol; my $line = <FILE>; }
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
|---|