Your first script: Hello world - video
The first script you write: printing Hello World to the screen. Separate statements with semi-colons ;.
Separate parameters with comma: ,. Print newlines using \n.
#!/usr/bin/env perl use strict; use warnings; print "Hello world\n"; print 42, "\n";
chmod u+x hello_world.pl
See also the getting started article and the one about the sh-bang, she-bang or hashbang.
Published on 2015-01-26
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub. Comment on this post