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


in reply to Re: split and uninitialized variables
in thread split and uninitialized variables

Your first one's not going to work.

main::(-e:1): 0 DB<1> $_ = "a,b" DB<2> x ($x,$y,$z) = ('default') x 3 0 'default' 1 'default' 2 'default' DB<3> x ($x,$y,$z) = split( ',', $_ ) 0 'a' 1 'b' 2 undef