in reply to Re: Perl Regex
in thread Perl Regex

Using split instead of a regex may result in shorter code in this case, but you'll no longer have strict input validation, and the script will use up more RAM.

Update: See my longer answer below.