Thread: Perl or Shell?
View Single Post
  #6 (permalink)  
Old 03-29-2008, 10:23 AM
v0id v0id is offline
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

To use Perl on Linux, you can normally just type perl in the terminal. Either alone or followed by the name of the Perl-script to run. If no name is given, you can use it as a simple interpreter.
Code:
$ perl
print "1+2=", 1+2, "\n"
1+2=3
When you've written the print-statement you'll have to interpret it, which is done by pressing CTRL+D, and then the result will show up.
Reply With Quote