Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: A mapping between perlvar and %Config ? ( $^O $Config{osname} $^X $Config{perlpath} )

by Laurent_R (Canon)
on Aug 22, 2014 at 06:36 UTC ( [id://1098277]=note: print w/replies, xml ) Need Help??


in reply to Re: A mapping between perlvar and %Config ? ( $^O $Config{osname} $^X $Config{perlpath} )
in thread A mapping between perlvar and %Config ?

I am using Perl on VMS quite regularly (perhaps an average 4 or 5 days per month. I would guess it has to do with the fact that you usually don't call exe files directly by their name on VMS, but almost always through a symbol (something similar to an environment variable) pointing to the exe file. Quite probably, $^X knows the symbol name, but not the exe file behind. I'll try to test this when I get to work.

Update: Actually, I just tried, on our VMS platforms, with Perl version 5.8.6, $^X contains the full name, including physical path, exe extension and even the version number:

ROL>sh symbol perl PERL == "$PERL_ROOT:[000000]PERL.EXE" ROL>sh logical PERL_ROOT "PERL_ROOT" = "$1$DGA3501:[SYS0.SYSCOMMON.PERL5_8_6.]" (LNM$JOB_834 +94F40) ROL>perl -e "print $^X, qq(\n)" $1$dga3501:[sys0.syscommon.perl5_8_6.][000000]perl.exe;1
  • Comment on Re^2: A mapping between perlvar and %Config ? ( $^O $Config{osname} $^X $Config{perlpath} )
  • Select or Download Code

Replies are listed 'Best First'.
OT - Re^3: A mapping between perlvar and %Config ? ( $^O $Config{osname} $^X $Config{perlpath} )
by MidLifeXis (Monsignor) on Aug 22, 2014 at 12:54 UTC

    Ahh, fond memories. Actually miss that OS (15+20 years past). Lots of interesting features.

    --MidLifeXis

      I must say that I think is is, or was, actually a quite good and robust system (although I prefer working on Unix).

      We have a huge monolithic customer management, phone provisionning, rating and billing, and accounting application running a cell phone client base of 35 million customers on 7 VMS clusters.

      However, HP has announced that it will discontinue suport within about 5 years, so we will probably port that application to Oracle and Linux. Migration from VMS will be a pretty large project.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found