in reply to Re: Re: isa() and taint checking
in thread isa() and taint checking
A cheap hack to get around the problem:
sub loadObjects { my $directory = shift; opendir(DIR, $directory) or die "Object Templates can't be loaded: Can't open $directory: $ +!"; while (defined(my $file = readdir(DIR))) { if($file =~ /^(.*\.pm)$/) { $file = $1; $file = $directory."/".$file; my $file = $file; # Cheap hack require $file; $file =~ s/\//::/g; $file =~ s/\.pm$//; if($file->isa('Objects::Parent')) { my $tempObject = $file->new(); $tempObject->doSomething(); } } }
Otherwise, it looks to me like a bug in perl. *shrug* Maybe someone better than I can shed some light.
bbfu
Black flowers blossum
Fearless on my breath
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (bbfu) (cheap hack) Re3: isa() and taint checking
by chromatic (Archbishop) on Oct 17, 2002 at 19:08 UTC | |
by bbfu (Curate) on Oct 17, 2002 at 21:11 UTC |