$ perl -wle'my $string = "foo,bar"; split /,/, $string;' Use of implicit split to @_ is deprecated at -e line 2.