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

Re: Sourcing another Scripts using perl script

by FloydATC (Chaplain)
on Jan 21, 2014 at 17:14 UTC ( #1071495=note: print w/ replies, xml ) Need Help??

in reply to Sourcing another Scripts using perl script

Hmm! Am I right in assuming you want to source those shell scripts in order to set environment variables or declare shell functions so they will be inherited by your Perl process and any child processes you spawn?

If so, I don't think it can be done, but I would love for someone to correct me.

However, if your "my.ini" is just a confusingly named Perl script, it's possible to run it using require "my.ini"; but I would definitely not recommend this.

Instead, use proper modules. They're not hard to write, and they will save you lots of backtracking later.

-- FloydATC

Time flies when you don't know what you're doing

Comment on Re: Sourcing another Scripts using perl script
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-02 22:50 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (46 votes), past polls