in reply to Perl One Liner to Check Location of a Module

TIMTOWTDI :-)
perl -le 'use Foo::Bar; print $INC{"Foo/Bar.pm"}'

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Perl One Liner to Check Location of a Module
by jhourcle (Prior) on Apr 09, 2007 at 15:31 UTC

    I keep the following shell script around:

    #!/bin/sh perl "-M$1" -e 'print map { sprintf( "%20s : %s\n", $_, $INC{$_} ) } s +ort keys %INC; print "\n'$1' version : $'$1'::VERSION\n\n"'
Re^2: Perl One Liner to Check Location of a Module
by blazar (Canon) on Apr 10, 2007 at 13:22 UTC
    TIMTOWTDI :-)

    Yep, and some of them were mentioned previously. (And I bet other dozens times, but I'm not much of a PM indexer, while I remember that thread for having taken part to it.)