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

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-10-24 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls