![]() |
![]() |
| Linux news | Newbie's Linux manual | Linux links | Link us | ||
| The Linux columns | Book reviews | ||
| DistroWatch + TuxReports | November 2, 2002 | |
Contents | Previous | Next | Download
- 1 -
Enter:
vi hello.pl
Note:
To identify all your Perl programs, use a .pl file extension.
- 2 -
Enter the following program, then save and exit Vi:
#!/usr/bin/perl -w print "Hello, Perl!\n";
- 3 -
To run the program you need to make the file executable. To do this, enter:
chmod +x hello.pl
Note:
You only need to make the file executable once. After that you just modify and run.
- 4 -
To run the program, enter:
./hello.pl
Contents | Previous | Next | Download
| About us | |
| Latest stable kernel: 2.4.19 | Latest development kernel: 2.5.44 Copyright © 1998-2002 Linuxdot.org. Linux ® is a registered trademark of Linus Torvalds. |
|