Create Hello World program
We will now write a simple Hellow World program so that you know Perl is running
1. Open Windows Explorer, go to c:\ and create a directory called c:\test.
2. In that directory, create a text file called test.pl.
:
3. Right-click on the file and choose Edit to edit the file with Notepad.
:
4. In Notepad, type in the following code and save the file.
#!/usr/bin/perl
print "Hello World!\n";
5. Click Start > Run then type cmd and click OK .
:
6. Type cd c:\test and hit ENTER .
7. Type dir and hit ENTER to make sure your file is there.

8. Now type test.pl and you will see the output of your Perl program.
0 comments:
Post a Comment