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; }; }
Back to
Seekers of Perl Wisdom