Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: copying bash variables into a Perl script

by Xilman (Hermit)
on Jun 16, 2010 at 11:27 UTC ( [id://845005]=note: print w/replies, xml ) Need Help??


in reply to Re: copying bash variables into a Perl script
in thread copying bash variables into a Perl script

Here is another but rather silly way: have the Perl script read the source of the bash script and extract the names and values of the bash variables.

The only advantage I see of this approach over your suggestions is that the Perl script needs only to know the name of the bash script. It does not need to know either the number or the names of the bash variables.

Paul

  • Comment on Re^2: copying bash variables into a Perl script

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found