bbaski has asked for the wisdom of the Perl Monks concerning the following question:

I am writing a scipt,
to print an env variable ... print "$ENV{ORCALE_HOME}";
I am getting dos path in 8.3style Output i am getting is :c:\PROGRA~1\orcale\db_1 But i need it as: C:\PROGRAM FILES\oracle\db_1
can any one help ??

Replies are listed 'Best First'.
Re: make perl ingnore using dos path
by Corion (Patriarch) on Mar 16, 2009 at 10:43 UTC

    Perl just outputs what is in your environment. If you enter

    set ORACLE_HOME

    at your command prompt you will see that $ENV{ORACLE_HOME} just has the short path name defined. Why do you need the long path name? The short path name will work for almost all cases where a long name can be used.

      Ya.. I have checked my environment. It has only short path names.

      But my applicaiton needs to use long names. Is there any way to convert it from short to long names
      Thanks...