Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm trying to pass arguments to a function defined in .bashrc. I don't have any control over the contents of the .bashrc. For the sake of argument: In .bashrc there is a function defined along the lines of: where the script untouchable.pl is also not something I have any control over:
I'm trying to make a system call to this function from within a perl script as follows: But my arguments john mike bill are completely lost. I know I could make a call directly to the untouchable.pl in this particular scenario here. But, I'm actually interested in how to make an interactive call to the bash command. If I run untouchable from the command line, it works as expected. How do I write a perl script to make a system call to untouchable and get this call to also pass my arguments along? In reply to Unsuccessfully passing arguments to a bash command by zapatafa
|
|