Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Get module location from module

Reply
Thread Tools

Get module location from module

 
 
Mike Mimic
Guest
Posts: n/a
 
      02-22-2004
Hi!

How can module get its location on system?

Executable variables show Perl program which
include module.


Mike
 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      02-22-2004

Mike Mimic <(E-Mail Removed)> wrote:
> Hi!
>
> How can module get its location on system?
>
> Executable variables show Perl program which
> include module.


$INC{'Foo/Bar.pm'}

If you want the Perl program's location, use FindBin.

Ben

--
perl -e'print map {/.(.)/s} sort unpack "a2"x26, pack "N"x13,
qw/1632265075 1651865445 1685354798 1696626283 1752131169 1769237618
1801808488 1830841936 1886550130 1914728293 1936225377 1969451372
2047502190/' # http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to get the text from browser location bar *before*navigation (e.g. not location.href) Alex Bird Javascript 3 05-09-2008 02:15 PM
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
NAT location and VPN termination location K.J. 44 Cisco 0 09-12-2006 02:17 PM
after an image is moved to a new location, how to delete the image at the old location? zxo102 Python 0 08-01-2006 04:58 PM
How to trick a page into running at a location different from it'sphysical location? Luke Dalessandro ASP .Net 0 01-15-2006 05:59 AM



Advertisments