Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Avoid using a module if it's not available

by jacques (Priest)
on Jun 12, 2008 at 22:29 UTC ( #691810=note: print w/replies, xml ) Need Help??


in reply to Avoid using a module if it's not available

use HTML::Perlinfo::Modules; my $m = HTML::Perlinfo::Modules->new(); my $module = $m->print_modules( show_only => qr/FOO::bar/i ); if ($module) { my $foobarzlot=sprintf("%d,",bar(FILE)->zlot); print "FOOBARZLOT=".$foobarzlot."\n"; }
Note that it is very easy to look up multiple modules by simply adding them to the precompiled regular expression. For example:
my $modules = $m->print_modules( show_only => qr/FOO::bar|File::Which| +File::stat/i );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://691810]
help
Chatterbox?
[LanX]: I told you the story about the “new" currency trading system of Dresdner Bank
[LanX]: ?
[Corion]: No, or I don't remember the story ;)
LanX my favourite don't tell me the proof of concept is good enough for production anecdote
[ambrus]: ah, it's one of thos
[Eily]: what, there's a difference between proof of concept and production?
[LanX]: 20 years ago traders were complaining about the latency of the trading system...

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



    Results (349 votes). Check out past polls.