Get module location from module

Discussion in 'Perl Misc' started by Mike Mimic, Feb 22, 2004.

  1. Mike Mimic

    Mike Mimic Guest

    Hi!

    How can module get its location on system?

    Executable variables show Perl program which
    include module.


    Mike
    Mike Mimic, Feb 22, 2004
    #1
    1. Advertising

  2. Mike Mimic

    Ben Morrow Guest

    Mike Mimic <> 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/' #
    Ben Morrow, Feb 22, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luke Dalessandro
    Replies:
    0
    Views:
    600
    Luke Dalessandro
    Jan 15, 2006
  2. zxo102
    Replies:
    0
    Views:
    403
    zxo102
    Aug 1, 2006
  3. saiho.yuen
    Replies:
    3
    Views:
    409
    kaeli
    Sep 14, 2004
  4. John Bailo

    IE7 shows location even if location=no

    John Bailo, Jan 19, 2007, in forum: Javascript
    Replies:
    4
    Views:
    166
    OmegaJunior
    Mar 11, 2007
  5. Alex Bird
    Replies:
    3
    Views:
    168
    Thomas 'PointedEars' Lahn
    May 9, 2008
Loading...

Share This Page