[Chicago-talk] is there a perl which?

Jay Strauss me at heyjay.com
Thu Feb 9 08:42:59 PST 2006


Thanks Jason,

I like this suggestion.

Thanks
Jay

On 2/8/06, Jason Gessner <jason at multiply.org> wrote:
>
> you can also just do perldoc -l MODULENAME
>
> i do this all the time:  vim `perldoc -l BLAHBLAH`
>
> -jason
>
> On Feb 8, 2006, at 9:58 AM, tiger peng wrote:
>
> > I stole Andy's idea and add a functoin into my .kshrc.
> > function perlch {
> >   pm=$1
> >   dir=$(echo $pm | sed 's/::/\//g')
> >   perl -M$pm -le "print $pm, ' = ' ,\$INC{'$dir.pm'}"
> > }
> >
> > Then I can perlch
> > $ perlch DBD::Oracle
> > DBD::Oracle =
> > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/DBD/
> > Oracle.pm
> >
> > Thanks Andy,
> >
> >
> >
> > --- Jay Strauss <me at heyjay.com> wrote:
> >
> >> On Wednesday 08 February 2006 12:25 am, Andy Lester
> >> wrote:
> >>>> 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.
> >>
> >> Thanks
> >> Jay
> >> _______________________________________________
> >> Chicago-talk mailing list
> >> Chicago-talk at pm.org
> >> http://mail.pm.org/mailman/listinfo/chicago-talk
> >>
> >
> > _______________________________________________
> > Chicago-talk mailing list
> > Chicago-talk at pm.org
> > http://mail.pm.org/mailman/listinfo/chicago-talk
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20060209/c93958d6/attachment.html


More information about the Chicago-talk mailing list