in reply to Re^5: Help Me!
in thread Help Me!
my ($id, $name, $major, $email) = split(',',$line);The later code didn't have special variables nor any Regex
The first argument to split, although represented above as the string ',', is actually the regex /,/.
And your code also has the added advantage of slurping the entire file into memory.
|
|---|