open (FILE,"<$input_file") or die "Couldn't open file $input_file, $!\ +n"; while (<FILE>) { chomp; if ($_) { $entry .= "$_\n"; } else { push @data, $entry; $entry = ""; } } close FILE;
In reply to Re: When is an code^$/code not a code^$/code?
by ton
in thread When is an ^$ not a ^$ ?
by Clownburner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |