Perl: the Markov chain saw | |
PerlMonks |
Re: Reading from terminalby eighty-one (Curate) |
on Nov 15, 2008 at 17:52 UTC ( [id://723813]=note: print w/replies, xml ) | Need Help?? |
Without a code example it's hard to know why it's working the way it is instead of the way you want. The first thing that comes to mind, is how are you executing the external program? System or backticks?Try using backticks and assigning the results to a variable; i.e.:
Note that those are backticks (`) which share the same key as the tilde (~)(at least on my keyboard, but I'm not a Mac user, so YMMV), not single quotes (').
In Section
Seekers of Perl Wisdom
|
|