http://www.perlmonks.org?node_id=11133812


in reply to When not to use taint mode

> It seems from this poll that most others don't use it either

Hmmm... Seems to me that the poll is just saying that 3/4 don't know it.

And 2/3 of the rest also use it.

Replies are listed 'Best First'.
Re^2: When not to use taint mode
by LanX (Saint) on Jun 13, 2021 at 18:30 UTC
    > Hmmm... Seems to me that the poll is just saying that 3/4 don't know it.

    true, which answers the "when not" for 75%

    More often than not 5/2% Occasionally 21/7% Never 48/16% What is taint mode? 219/75%

    But ...

    > And 2/3 of the rest also use it.

    I think you misread the 16%.

    So (almost) 2/3 of the rest is NOT using it.

    edit

    Anyway I don't think this is a good poll anyway.

    There was no option for "always"

    And if someone is not writing code dealing with untrusted input he'll rightfully say never.

    Not all of us are web-devs, a decent survey would break that down on usage patterns.

    FWIW: PM-Polls are mostly for fun, not information ...

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Re^2: When not to use taint mode
by Bod (Parson) on Jun 13, 2021 at 16:28 UTC
    the poll is just saying that 3/4 don't know it

    If they don't know what taint mode is and it isn't on my default then we can assume that they are not using it...
    Having said that, I didn't realise until I read afoken's answer that Perl will sometimes turn on taint mode without being told.