Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Sourcing another Scripts using perl script

by FloydATC (Deacon)
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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1071495]
[Discipulus]: nettop I have some spare time..
[Discipulus]: do you have some spare money? ;=)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2018-04-20 17:32 GMT
Find Nodes?
    Voting Booth?