Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: accessing an environment variable dynamically

by BrowserUk (Pope)
on Jan 01, 2013 at 20:49 UTC ( #1011182=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    system( q[ perl -E"exit 1;" ] ); print $? >> 8;;
    1
    ...
    
    system( q[ perl -E"exit 123;" ] ); print $? >> 8;;
    123
    
  2. or download this
    system( q[ perl -E"exit -123;" ] ); print $? >> 8;;
    133
    ...
    
    system( q[ perl -E"exit -129;" ] ); print $? >> 8;;
    127
    
  3. or download this
    system( q[ perl -E"exit -1;" ] ); print $? >> 8;;
    Can't spawn " perl -E"exit -1;" ": No error at (eval 26) line 1, <STDI
    +N> line 19.
    255
    
  4. or download this
    system( q[ perl -E"exit 12345;" ] ); print $? >> 8;;
    57
    
    system( q[ perl -E"exit 123456789;" ] ); print $? >> 8;;
    21
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (16)
As of 2015-07-07 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls