but it looks a lot cooler to do this:while (<$infile>) { chomp; $lines[$line_count] = $_; $line_count++; } close $infile;
besides the 'cool' factor, any issues?my @lines = map{chomp;$_;$line_count++;} <$infile>;
In reply to reading lines into an array by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |