in reply to Re^4: Help Me!
in thread Help Me!

Using this standard module will improve readability at least for those who are from Java background like me and the OP. The later code didn't have special variables nor any Regex and had only one loop. I hope these are improvements.
regards

Replies are listed 'Best First'.
Re^6: Help Me!
by jwkrahn (Abbot) on Apr 10, 2011 at 10:23 UTC
    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.