in reply to Re: shell to perl
in thread shell to perl

... 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.";

Replies are listed 'Best First'.
Re: Re: Re: shell to perl
by rbc (Curate) on Jan 24, 2003 at 02:45 UTC
    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