SCIENTIFIC-LINUX-USERS Archives

December 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Alex Kruchkoff <[log in to unmask]>
Reply To:
Alex Kruchkoff <[log in to unmask]>
Date:
Tue, 4 Dec 2007 07:44:24 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
Good morning, Michael.

The following 1-liner will help you to find which perl modules will be run:

perl -e 'print join("\n", @INC),"\n"'

Cheers
Alex

Michael Mansour wrote, On 12/04/2007 12:40 AM:
> Hi,
>
> I have a couple of perl modules of the same name installed in my OS. This is
> expected as I've hand compiled various apps.
>
> What I'd like to know is, how I'd determine which perl module is actually used?
>
> As an example, I have the Base64.pm in three locations - please don't ask why
> :), and when I run:
>
> # perl -MMIME::Base64 -e '{print "$MIME::Base64::VERSION\n"}'
> 3.07
>
> Yet I do not know which one it's picking up, as I have one from Sep 20  2004,
> another from Nov 30  2005 and another from this year Jun 15 01:35.
>
> I know perl searches through paths in its environment (not sure where it gets
> that from), but any ideas how I can find out which Base64.pm is being used?
>
> Thanks.
>
> Michael.
>
>   

ATOM RSS1 RSS2