http://www.perlmonks.org?node_id=1001464


in reply to Re^2: Regular expression
in thread Regular expression

um, see split, first argument is regular expression, the other arguments are string to split, and the limit

the grep is used to skip empty lines