Solved

a simple script that writes "Hello World!" on the screen

Posted on 2011-03-09
3
464 Views
Last Modified: 2012-05-11
My first perl script: a simple script that writes "Hello World!" on the screen.
If I want the command directly instead of put the script into a pl file. How?

Thanks.
0
Comment
Question by:zhshqzyc
3 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35090669
perl -wnl -e 'print "Hello World!"'
0
 
LVL 16

Accepted Solution

by:
sjklein42 earned 50 total points
ID: 35090688
Command line Hello World PERL test:

perl -e "print 'hello world';"

Open in new window

0
 
LVL 48

Expert Comment

by:Tintin
ID: 35091667
 perl -e 'print "Hello world\n"'

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
generating rpm using noarch parameter 1 44
Multipart email template with broken links (PHP/Postfix) 5 300
KVM vs  Qemu 4 118
Unix / Linux grid computing 5 163
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question