![]() |
|
XP is just a number | |
PerlMonks |
How do I get both the return value and text? backticks vs. system()by flymolo (Acolyte) |
on Jun 21, 2000 at 01:59 UTC ( #19119=perlquestion: print w/replies, xml ) | Need Help?? |
flymolo has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (programs and processes)
`some command` will give me the text of the executed program.
system("command") will return the return value, but running the
program twice might change text and/or return values.
Is there any easy way to do this?
Right now I'm thinking system("command >file") but then I'd
have a file I don't need.
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|