Thread Module-Path ermitteln (8 answers)
Opened by esskar at 2005-04-08 01:03

esskar
 2005-04-08 02:41
#53585 #53585
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
immer nach dem post kommt mir die erleuchtung

Code: (dl )
1
2
3
4
5
6
my $name = "";
my $basename = Ox::File::basename($filename, ".pm");

require "$pckpath/Type/$basename.pm";
eval '$name = $'.$pck.'::Type::'.$basename.'::Name';
die "[$name]";


:)

View full thread Module-Path ermitteln