Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: shell to perl

by rbc (Curate)
on Jan 23, 2003 at 22:41 UTC ( #229463=note: print w/ replies, xml ) Need Help??


in reply to shell to perl

Did you do ...

$ perl -e 'my $env = system( qq ( whoami )) ;'
... that worked for me?


Comment on Re: shell to perl
Download Code
Re: Re: shell to perl
by sauoq (Abbot) on Jan 24, 2003 at 00:31 UTC
    ... that worked for me?

    Uhm... No, it didn't. In your case, $env was set to the exit status of whoami(1), probably 0.

    -sauoq
    "My two cents aren't worth a dime.";
    
      Uhm... No, it didn't. In your case, $env was set to the exit status of whoami(1), probably 0.
      Yeah so ... does that mean it "didn't work"?
      *Geez*
      $ perl -e 'my $env = system( qq ( whoami )) ;' rbc $ perl -e 'my $env = system( qq ( whoru )) ;' wrong

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-11-25 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (159 votes), past polls