Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by hippo (Monsignor)
on Oct 29, 2013 at 13:20 UTC ( #1060154=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?

Did you try this:

system ('. file.sh && routine');

It's untested, but may give you a pointer. However, I advise against the whole principle as it will be somewhat lacking in transparency and therefore maintainability. YMMV.

It does sound a little like an XY Problem.

  • Comment on Re: How can i call the subroutine of the shell script and pass certain parameters to it?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1060154]
help
Chatterbox?
[Eily]: someday FF will start posting back messages where you tell to ignore the previous message
[Eily]: and Hilarity Ensues

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2017-03-27 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.