Thread Modul-Einbindung mit eval
(40 answers)
Opened by bianca at 2011-03-28 18:38 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 my $utc_module; BEGIN { if ($^O =~ /win32/i) { # oder Win32, keine ahnung $utc_module = eval "use Win32::Something (...); 1;" || 0; } else { $utc_module = 0; } } |