Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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 studying the Monastery: (4)
As of 2015-11-29 01:27 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls