perl -e '$var="11/22";$x,$y = split("/",$var,);print "x is $x and y is $y\n";' x is and y is 2 perl -e '$var="11/22";$x,$y = split(/\//,$var,);print "x is $x and y is $y\n";' x is and y is 2