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


in reply to Idiomatic Split to Scalar Conversion

my $foo = @{ [ split(/,/, "foo,bar,baz") ] };

stephen