Perl: the Markov chain saw | |
PerlMonks |
How to include a doublequoted string into a backticked expression?by pat_mc (Pilgrim) |
on Jan 23, 2009 at 11:38 UTC ( [id://738440]=perlquestion: print w/replies, xml ) | Need Help?? |
pat_mc has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Monks - I am trying to assign the return value of a Bash command into a variable. The problem seems to be the handling of the required double quotes inside of the backticked expression: This subroutine consistently returns a blank string while the bash command itself has a non-zero length return value when executed from the shell. Could it be the string $lemma does not even get interpolated into the expression? Can you please let me know how to correctly include the doublequotes inside the backticked expression? Thanks in advance for your help! Cheers - Pat
Back to
Seekers of Perl Wisdom
|
|