--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote:
> On Jun 19, Jeff Westman said:
> 
> >     1  #!/bin/perl -w
> >     2
> >     3  @a = qx{set};
> 
> >Can't exec "set": No such file or directory at ./x line 3.
> >
> >Yet, using qx{env} works fine.  Why?
> 
> Because 'set' is a shell built-in, and 'env' is a program.  Whatever shell
> Perl is using to run your command, it DOESN'T have a built-in called 'set'
> in it.
> 
> Why not just use the %ENV hash?

Okay, makes perfect sense (I should have known better).  As far as using
%ENV, of course I can use that, but I was more curious as to why the qx{set}
wasn't working.  (still, I would have thought that the builtins (or
functions, ksh, bash) would have been checked before the $PATH.

Thanks

Jeff

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to