Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: whichpm

by Aristotle (Chancellor)
on Jul 16, 2003 at 07:54 UTC ( #274720=note: print w/replies, xml ) Need Help??


in reply to whichpm

I've been using something nearly identical for a while - even named it whichpm as well.
use strict; use warnings; use File::Spec::Functions qw(catfile); my @loaded = grep { eval "require $_"; !$@ ? 1 : ($@ =~ s/\(\@INC contains: \Q@INC\E\)//, warn("Failed lo +ading $_: $@"), 0); } @ARGV; my @pm = map catfile(split '::') . (/\.pm\z/ ? '' : '.pm'), @loaded; print "@INC{@pm}\n";

Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274720]
help
Chatterbox?
LanX leaves with a song of the Chjuman League
[ambrus]: LanX: that's funny because it's actually the upper class that sleep in hotels, so they're the ones who should know how it's pronounced
[LanX]: h is mute in French (and most other romanic languages)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-03-27 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.