Thread require'd sub löschen
(17 answers)
Opened by bianca at 2015-02-22 08:10 Code (perl): (dl
)
1 2 3 4 5 6 7 8 my $package = 'my_import'.'::'.md5_hash($file); if( eval "package $package; return require '$file';" ){ if( $code = $package::can('function') ){ $code->(...); } } Last edited: 2016-02-13 18:49:59 +0100 (CET) |