Thread Prüfen ob ein Modul installiert ist (16 answers)
Opened by roli at 2007-03-13 14:24

bloonix
 2007-03-16 20:28
#75020 #75020
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=kristian,16.03.2007, 19:16]"Module must be a bareword"[/quote]
du verwechselst hier ganz klar use mit require ;)

Code: (dl )
1
2
3
my $modul = 'IO::Socket';
eval "use $modul;";
die "fehler: $@" if $@;


das funktioniert hervorragend!\n\n

<!--EDIT|opi|1174069750-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Prüfen ob ein Modul installiert ist