PERL Example Base Tutorial: Use of variable in PERL

PERL Example: Use of variable in PERL

PERL Example Base Tutorial: Use of variable in PERL
 

create a file named "variable-example.pl" then copy and paste the below code:

$MyName = "iqbal";
print "This program demonstrate the use of variable in PERL\n";
print "My name is '$MyName'";
 

PERL Example Base Tutorial: Use of variable in PERL description

 Now run the program (variable-example.pl) from your favourite command prompt and should get the result as follows:
 

PERL Example: Use of variable in PERL - output in the command prompt

The output in the windows command prompt

No comments:

Post a Comment

leave your comments here..