> 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