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

Re^2: copying bash variables into a Perl script

by Xilman (Friar)
on Jun 16, 2010 at 11:27 UTC ( #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
Node Status?
node history
Node Type: note [id://845005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2020-05-25 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (143 votes). Check out past polls.

    Notices?