CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Printing to command line

 



imillard
Deleted

Feb 22, 2001, 8:14 AM

Post #1 of 2 (124 views)
Printing to command line Can't Post

I have a bunch of print statements that I would like to execute on the command line, one at a time. How would I do this?



muinatit
Deleted

Feb 22, 2001, 2:27 PM

Post #2 of 2 (119 views)
Re: Printing to command line [In reply to] Can't Post

If you're going to run your script from the command line, then you just put 'print' and make sure to have no Content-Type line.

If you want your script to execute a command, then you do something like this...


Code
$perl = `whereis perl`;

With `` surrounding the command.

Jeffrey "muinatit" Lamoureux
muinatit@hotpop.com

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives