![]() |
- 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
| Copyright © 1998-2002 Linuxdot.org. |
| Linux ® is a registered trademark of Linus Torvalds. |