Eureka_sg has asked for the wisdom of the Perl Monks concerning the following question:
This is taken from perlfaq7
sub is_tainted{ return ! eval {join('',@_),kill 0;1;}; }
Can anyone explain how the above subroutine checks for tainted data?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tainted variable
by Dominus (Parson) on Apr 16, 2001 at 20:34 UTC | |
by Eureka_sg (Monk) on Apr 16, 2001 at 20:59 UTC | |
|
Re (tilly) 1: Tainted variable
by tilly (Archbishop) on Apr 16, 2001 at 19:25 UTC | |
by Dominus (Parson) on Apr 17, 2001 at 15:51 UTC | |
|
Re: Tainted variable
by Rhandom (Curate) on Apr 16, 2001 at 19:29 UTC |