I am trying to see what variables are set in my (parent) environment.
The following gives me an error:

     1  #!/bin/perl -w
     2
     3  @a = qx{set};
     4
     5  print  foreach (@a);
     6

Error message:
Can't exec "set": No such file or directory at ./x line 3.

Yet, using qx{env} works fine.  Why?


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