Perl Language Examples

#1.Perl Language Example . Save it as example.pl and run from the shell—> perl example.pl
print “Welcome to Perl \n”;
print ‘Single quotes also works \n’ ;
print ‘Not going to new line with \n’ ;
print “\n”;
print 12345 ;
print (“\n Can use this also\n”);

#Scalar Variables declaration and Using Them
my $var1 = “india”,$var2=20;
print $var1,” and “,$var2,”\n”;
print;

#Array declaration of variables and . . . → Read More: Perl Language Examples