Link to home
Start Free TrialLog in
Avatar of zhshqzyc
zhshqzyc

asked on

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

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.
Avatar of farzanj
farzanj
Flag of Canada image

perl -wnl -e 'print "Hello World!"'
ASKER CERTIFIED SOLUTION
Avatar of sjklein42
sjklein42
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
Tintin

 perl -e 'print "Hello world\n"'

Open in new window