Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: shell to perl

by rbc (Curate)
on Jan 23, 2003 at 22:41 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://229463]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found