Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How do I get both the return value and text? backticks vs. system()

by Archon810 (Initiate)
on Apr 30, 2008 at 01:42 UTC ( [id://683597]=note: print w/replies, xml ) Need Help??


in reply to How do I get both the return value and text? backticks vs. system()

Having used the new Perl 5.10, I was shocked to find this new variable after months of use:
${^CHILD_ERROR_NATIVE}
This variable gives the native status returned by the last pipe close, backtick command, successful call to wait() or waitpid(), or from the system() operator. See perlrun for details. (Contributed by Gisle Aas.)

New internal variables

Finally!.. what else can I say?

  • Comment on Re: How do I get both the return value and text? backticks vs. system()
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://683597]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-07-22 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.