Are you trying to view this via web browser? If so, you must first print the proper headers.
- #! /usr/bin/perl
-
-
use strict;
-
use warnings;
-
-
print "Content-type:text/html\n\n";
-
print 'Hello World';
I would suggest that you get or read the book "Learning Perl" or "Beginning Perl", both are a great resource for beginners.
Last, but not least. Always use the [code][/code] tags when posting code samples here at Bytes.com
--Kevin