By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,773 Members | 1,724 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,773 IT Pros & Developers. It's quick & easy.

how to find the path of perl file?

P: 7
Is there any variable that store perl file path??
Jul 8 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 4,059
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

P: 40
Hi ,

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

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

Post your reply

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