[Chicago-talk] is there a perl which?
tigerpeng2001 at yahoo.com
Wed Feb 8 06:46:45 PST 2006
I put an alias in my .profile or .kshrc.
It is from "Perl in a Nutshell". Piping its result to
grep or something else to get what you are looking
alias lspm="find `perl -e 'print "@INC"'` -name '*.pm'
--- Jay Strauss <me at heyjay.com> wrote:
> On Wednesday 08 February 2006 12:25 am, Andy Lester
> > > Is there a function in Perl analygous to the
> Unix 'which', for
> > > saying where in
> > > the @INC it will find a package?
> > Before it finds it? Not that I know of. But
> after it's loaded, yes,
> > you look in %INC.
> I like your way better. I forgot about %INC.
> Chicago-talk mailing list
> Chicago-talk at pm.org
More information about the Chicago-talk