Solved

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

Posted on 2011-03-09
3
461 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now