in reply to isa() and taint checking
This code works for me. You have to type 'Child' at the prompt.
package Parent; package Child; @Child::ISA = 'Parent'; package main; chomp(my $in = <STDIN>); my $kid; if ($in =~ /(\w+)/) { $kid = $1; } print $kid->isa( 'Parent' ); print 'Child'->isa( 'Parent' );
My guess is that your untainter isn't doing what you think it's doing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: isa() and taint checking
by webby (Acolyte) on Oct 17, 2002 at 16:20 UTC |