The following module was proposed for inclusion in the Module List:
modid: Detect::Module
DSLIP: Mdpf?
description: Autodetecting modules at runtime
userid: RPOLZER (Rudolf Polzer)
chapterid: 2 (Perl_Core_Modules)
communities:
comp.lang.perl.misc
similar:
AnyDBM_File
rationale:
Detect::Module makes Perl more platform-independent. I noticed that
not all modules are available on any platform. Using them, however,
causes the Perl script to die, what is often not what one wants. You
can just list many modules, from which the first one which exists is
loaded, so manually editing scripts to make them work on another
platform is not needed. AnyDBM_File does exactly this, but can only
be used once in a program. So this module should be included in the
CPAN because it can save you from installing many modules; Storable
is an example of a module that is not always there. You could do
this:
use Detect::Module qw/:standard/; my $store = Load 'Storable',
'FreezeThaw';
Now you can just use $store->freeze () to freeze data structures
and do not need to worry which module was used.
Why this namespace? What does this do? It detects automatically.
And what does it detect? Modules. So why not Detect::Module?
And a note about the license: if I understand the GPL correctly, I
would choose it. I allow changes to this module, and I of course do
not want to recieve money for this, so it looks appropiate. But I am
not really sure yet.
enteredby: RPOLZER (Rudolf Polzer)
enteredon: Thu May 3 18:45:59 2001 GMT
The resulting entry would be:
Detect::
::Module Mdpf ? Autodetecting
:modules at runtime
Thanks for registering,
The Pause Team
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
http://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=d2000000_8d376ce14024c06b&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
http://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=d2000000_8d376ce14024c06b&SUBMIT_pause99_add_mod_insertit=1