PERL Tutorial Example: Commenting codes in PERL - How to comment perl code?
PERL Example Base Tutorial: Commenting codes in PERL - How to comment perl code?
create a file named "perl-tutorial-example-comments.pl" then copy and paste the below code:
$MyFavouriteColor = "red"; # put your favourite color here #Perl does not support multiline comments /**/ print "\nComments example in PERL"; print "\n\nMy favourite color is :"; print $MyFavouriteColor; print "\n";
PERL Example Base Tutorial: Commenting codes in PERL - How to comment perl code? description
Now run the program (perl-tutorial-example-comments.pl) from command prompt and get the desired result as follows:
No comments:
Post a Comment
leave your comments here..