Hi all friends, I am developing a cgi-perlscript using `-wT` to get an as secure as possible script.
One function is to print something, I am using the Printer.pm for.
When jumping to that sub, tain alerts, because the module is trying to do a `bind($sh,$there)`. The $sh variable comes from the perlscript being imported from the new printer instance defined there.

My question is: Can I disable taintcheck for that module or sub or their variables and keep taintchecks for the rest of my script? If so, how? Note, that I'd rather like to do unusual things in my script than modifying someones module.
If not, this would mean, that I had to rewrite the module, or keep it out, or don't use taint at all. These alternatives are not so good...

so, give me enlightment, because I haven't found a hint, yet.

there are no silly questions killerhippy

In reply to disable taint for just one sub by khippy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.