Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how to invoke unix commands in perl

by coolmichael (Deacon)
on Feb 10, 2001 at 11:52 UTC ( #57603=note: print w/ replies, xml ) Need Help??


in reply to how to invoke unix commands in perl

why bother with unix at all?

perl -e "while(<>){} print qq($.\n);" filename


Comment on Re: how to invoke unix commands in perl
Download Code
Re^2: how to invoke unix commands in perl
by Anonymous Monk on Oct 28, 2004 at 07:06 UTC
    But how to invoke setenv or source commands in perl These are built-in shell commands. -Bhanu
      Those particular commands would be useless anyway because they only take effect for the current shell which would be exited anyway once the OS call is done.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://57603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-12-19 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (93 votes), past polls