in reply to pass perl variable to shell script

Turn the problem inside out. Instead of using Perl within you shell script, use OS tools from within Perl. That is, replace the shell script with a Perl script.

True laziness is hard work

Replies are listed 'Best First'.
Re^2: pass perl variable to shell script
by arthurs (Novice) on Aug 11, 2010 at 15:01 UTC
    Thank you, GrandFather. I can't replace shell with Perl. That's the constraint I have. I must use existing shell script and add a block of Perl code in it.