Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Passing commands to subroutines

by Anonymous Monk
on Jul 01, 2009 at 17:21 UTC ( [id://776511]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Passing commands to subroutines
in thread Passing commands to subroutines

Have you read 'perldoc -f system'?
system "foo >bar";
invokes the shell, and it is the shell which does redirection (> <)

Replies are listed 'Best First'.
Re^4: Passing commands to subroutines
by citromatik (Curate) on Jul 01, 2009 at 17:44 UTC
    <blocquote>Have you read 'perldoc -f system'?

    Yes... that is why I am asking: you are calling system with 1 argument... can you please give me an example like that one (with redirection) using the multiple-arg version?

    citromatik

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-19 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found