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


in reply to split function

$ perl -le " my($1,$2) ; " Can't use global $1 in "my" at -e line 1, near "($1" Execution of -e aborted due to compilation errors.

$1,$2... are reserved for match operator (regex)

Post real code, that compiles under strict/warnings