I managed to make the following work on my pc: perl -e "print \"Hello world\n\"" should I be able to also assign value to $_ and then verify it, possibly in this way just for quick checking? tried the following but seems not working: perl -e "$_=2" perl -e "print \"$_2\n\""