What\'s the best way to read a fixed length record in Perl. I know to read a file like:
ABCDE 302 DEFGC 876
I can do
while
Here's yet another way to do it:
while () { chomp; if (/^([A-Z]{5}) ([0-9]{3})$/) { $key = $1; $value = $2; } }