Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

18 Experts available now in Live!

Get 1:1 Help Now