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?

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-02-21 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (308 votes). Check out past polls.