Or:

$path = $ENV{'MQSROOT'};
print $path;

could have been the intent (note the S as stated as being the
logical name).

Peter Prymmer



                                                                                       
                                  
                      [EMAIL PROTECTED]                                                
                                    
                                               To:      [EMAIL PROTECTED], [EMAIL 
PROTECTED]                              
                      03/19/2003 11:23         cc:      [EMAIL PROTECTED]              
                          
                      AM                                                               
                                  
                                               Subject: RE: on perl 5.6.0              
                                  
                                                                                       
                                  



I would imagine she really meant:

  $path = $ENV{MQROOT};
  print $path;

--Bob van Keuren
AMS, San Diego


-----Original Message-----
From: "Vorl�nder, Martin" [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:23 am
To: [EMAIL PROTECTED]
Cc: Malar, Kavitha
Subject: RE: on perl 5.6.0


> I have written one small perl pgm on VMS .
>
> path = $ENV{MQROOT};
> print $path;
>
> MQSROOT is the logical . I would like to print the value
> of the logical . While executing the perl script the value
> of $path is null .
> Is  ENV variable is supported on VMS .

Yes, %ENV is supported. If I try your program, I get:

$ perl -we "path = $ENV{'SYS$SYSDEVICE'}; print $path;"
Unquoted string "path" may clash with future reserved word at -e line 1.
Undefined subroutine &main::path called at -e line 1.
%SYSTEM-F-ABORT, abort
$

"-w" really is a useful option. As the perl.pod says:

  BUGS
      The -w switch is not mandatory.

cu,
  Martin
--
 [EMAIL PROTECTED]        | Martin Vorlaender        VMS/WNT programmer
                   | work: [EMAIL PROTECTED]
 Still exceeding   |       http://www.pdv-systeme.de/users/martinv/
 expectations      | home: [EMAIL PROTECTED]




Reply via email to