|
|
| There's more than one way to do things | |
| PerlMonks |
How do I get both the return value and text? backticks vs. system()by flymolo (Acolyte) |
| on Jun 20, 2000 at 21:59 UTC ( [id://19119]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.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
|
|
||||||||||||||||||||||||||||||||||||