467,179 Members | 1,277 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

how to find the path of perl file?

Is there any variable that store perl file path??
Jul 8 '08 #1
  • viewed: 2406
Share:
2 Replies
KevinADC
Expert 2GB
check the ENV hash

Expand|Select|Wrap|Line Numbers
  1. foreach my $keys (keys %ENV) {
  2.    print "$keys = $ENV{$keys}\n";
  3. }
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.
Jul 8 '08 #2
Hi ,

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

[code = "perl"]
use English;
print "Perl Path: $PROGRAME_NAME";
[/code]
Jul 18 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Greg Yasko | last post: by
31 posts views Thread by John Roth | last post: by
6 posts views Thread by Joe Cosby | last post: by
1 post views Thread by Dan Jones | last post: by
3 posts views Thread by Xah Lee | last post: by
2 posts views Thread by Adam Teale | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.