Paul Johnson wrote: >I'm not sure whether there is a more elegant or more vanilla way to do >that. Appending the zero length substr is also the way it is done in >the perl core. > >You would normally take the substr from the original string before >splitting it, unless you wanted to taint $foo even if its source wasn't >tainted. Okay, I will go this way. Thank you.
Ron Bergin wrote: >I have not used it myself, but the Taint::Util module looks like it does just >what you want. >http://search.cpan.org/~avar/Taint-Util-0.08/Util.pm I had to write about it, of course I've seen this module on CPAN. But I have to keep my script without dependencies. Thank you for your reply.