Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can i call the subroutine of the shell script and pass certain parameters to it?

by Anonymous Monk
on Oct 29, 2013 at 13:19 UTC ( [id://1060153]=note: print w/replies, xml ) Need Help??


in reply to How can i call the subroutine of the shell script and pass certain parameters to it?

Can't be done, perl isn't shell. see system, qx, perlipc

Replies are listed 'Best First'.
Re^2: How can i call the subroutine of the shell script and pass certain parameters to it?
by Corion (Patriarch) on Oct 29, 2013 at 13:26 UTC

    Also see do, which would be the closest thing to source in terms of Perl.

    Or maybe Get default login environment, if the objective is "just" to set up some environment.

    Still, defining and then calling shell functions from within Perl requires lots of effort that I'd try to avoid.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-03-19 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found