|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Assigning output of unix command to a variableby ksermas (Initiate) |
| on Dec 23, 2009 at 00:37 UTC ( #814025=perlquestion: print w/ replies, xml ) | Need Help?? |
|
ksermas has asked for the
wisdom of the Perl Monks concerning the following question:
Is there a way to send the output of a unix command to a variable in Perl? I'm trying to have a while loop read in input, assign it to a variable and then have that variable be the input for the unix command. This is what I have:
When I run it, it can't get past the '|' in the nslookup command. Thanks to all who can help.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||