how to find the path of perl file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Raju Sathliya
    New Member
    • Jul 2008
    • 7

    how to find the path of perl file?

    Is there any variable that store perl file path??
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    check the ENV hash

    Code:
    foreach my $keys (keys %ENV) {
       print "$keys = $ENV{$keys}\n";
    }
    one of them hopefully has that information. If not, I am pretty sure there is a module but I can't remember the name of the module.

    Comment

    • cnsabar
      New Member
      • Dec 2007
      • 40

      #3
      Hi ,

      By using this script , you can find the path of perl file...

      [code = "perl"]
      use English;
      print "Perl Path: $PROGRAME_NAME" ;
      [/code]

      Comment

      Working...