How to put a Comment in Perl?
Perl code can be commented using # as follows:
#!/usr/bin/perl ######################## # I donot execute. This is comment. ######################## perl "Hello World";
Note, in perl first line carries special significance to the perl program. It always begins with #!, followed by the path to the perl binary/executable. It shows where perl executable is to be found. Perl is an interpreted language and does not compile. Therefore, do not think that first line is a comment, since, it is starting with #.

Post Comment