Sunday, October 9, 2011

hello world in perl

for a special problem i have to teach myself a programming language.
i decieded for perl because i thought a friend use it too.
after the first lessons i hear that he work with python.
but now i stay at perl.

here the classic "hello world":

#!/usr/bin/perl -w
use strict;
print "hello world\n";


very ease, i save it as .pl file,
then change it to executable with:
chmod +x test.pl
and simple execute it.
./test.pl

and enjoy myself at the hello world

No comments:

Post a Comment