| Hello World in perl |
|
| programming |
This article describes how to write and execute a "Hello World" perl script on Linux (Fedora).
1. the prerequisites
If it is not installed yet, you can install it with yum (you need to be root to do that):
2. write the code
now write the following lines into it: save the file and exit vi with ":wq + enter"
explanationThis tells the system to use the /usr/bin/perl interpreter to execute the script. You can find out the full path of your perl interpreter by entering the following command: This prints out the string "Hello World!" followed by a newline (a carriage return).
3. make the script executable4. run the program
- or -
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |


