My First perl program




My First perl program:


Create a file with filename.pl

#!/usr/bin/perl
print "Hello World.\n";

First Line:

Every program starts with this line..It is the perl interpreter and will vary from system to system ... To Know about your interpreter type in command prompt

$which perl


Second Line:

It is used to print the Hello World on the screen..

To execute type in command prompt

$perl filename.pl


Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto