perlknight has asked for the wisdom of the Perl Monks concerning the following question:
Could someone explains why this detects if a variable is tainted?
I assume the key is "vairable,kill 0". I checked the kill func, it returns 0 on success and > 0 on failure. So kill 0 will always return success; Does this mean the variable you pass into this function is always going to come out tainted? Thanks.return ! eval { join('',@_), kill 0; 1; }; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: is_tainted function
by dave_the_m (Monsignor) on Sep 20, 2007 at 13:00 UTC | |
Re: is_tainted function
by Anonymous Monk on Sep 20, 2007 at 14:07 UTC | |
Re: is_tainted function
by amarquis (Curate) on Sep 20, 2007 at 13:00 UTC | |
by DrHyde (Prior) on Sep 21, 2007 at 10:42 UTC |
Back to
Seekers of Perl Wisdom