Hello, World
Here is a simple "Hello World" program in Perl:
print "Hello, World!\n";
Steps to Run
Save the code: Save the above code in a file named
hello.pl
.Open a terminal: Navigate to the directory where
hello.pl
is saved.Run the script: Use the
perl
command to run the script. Run the following command:perl hello.pl
This will output:
Hello, World!
Last modified: 01 January 2025