in reply to Unexpected de-tainting with hash keys

This is mentioned in my copy of the Camel (the most recent ed. whichever that is). Taint, blessedness and all the other little things that make perl scalars neat do not apply to hash keys coz they're just plain old strings. Hash keys are not scalar values.

I tried to find some good documentation to support myself with, but this is clearly not well documented behavior. Dominus mentions it in his September 1 1998 Line of the day (scroll down). There's also a note in an old version of the Taint module. I couldn't find anything more recent. But it is in the latest Camel, I don't have my copy handy or I'd find a page # for ya.


TGI says moo

  • Comment on Re: Unexpected de-tainting with hash keys

Replies are listed 'Best First'.
Re: Re: Unexpected de-tainting with hash keys
by sauoq (Abbot) on Jul 11, 2003 at 02:39 UTC

    Indeed, it is known. Wow.

    At the very least, the docs should be patched. At least that's an easy "fix." :-)

    -sauoq
    "My two cents aren't worth a dime.";
    
Re: Re: Unexpected de-tainting with hash keys
by eskwayrd (Acolyte) on Jul 11, 2003 at 17:28 UTC
    Thanks for the explanation. This makes it seem so obvious.

    And, the page number in question for the 3rd edition of the Camel book is 559. It's the last sentence in the second to last paragraph. I'd been over that section a few times and completely missed the implication.

    And the links to MJD's page and to the old Taint documentation were helpful too.