Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chanting in the Monastery: (6)
As of 2015-07-06 08:59 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 (70 votes), past polls