in reply to Re: Re: Do regex using hash keys to wrapped template tokens
in thread Do regex using hash keys to wrapped template tokens

Well, what is %input? Methinks you meant for (param) instead of for (keys %input)... sounds like someone's not using strict!

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Re: Re: Do regex using hash keys to wrapped template tokens
by S_Shrum (Pilgrim) on Feb 16, 2002 at 00:40 UTC

    strict is in there (just commented out for right now ;-) I'm just taking care of the big bugs first...I can work on formalizing it later

    %input is a CGI created hash of a hash if I understand it correctly.

    Supplying just for (param) is not enough, right? I tried it with no success. How do I reference the param portion of %input for the FOR loop.

    TIA

    ======================
    Sean Shrum
    http://www.shrum.net

      strict is in there (just commented out for right now ;-)

      No, no, no, no, no! The whole point* of using strict 'vars' is to keep you from making mistakes during development. If you turn it off then, and only turn it on when you've ironed out all the bugs, you're depriving yourself of the best typo-protector you could have.

      Same goes for -w, while I'm at it...

      </RANT>

      * Possibly untrue, but reasonable in context...



      If God had meant us to fly, he would *never* have given us the railroads.
          --Michael Flanders

Re: Re: Re: Re: Do regex using hash keys to wrapped template tokens
by S_Shrum (Pilgrim) on Feb 16, 2002 at 01:06 UTC

    Never mind....got it. A little trial and error produced: for ( $input->param() )

    From your code example, regular replaces are happening but lc_$_ and uc_$_ replaces are not transforming case; getting replaced with originally input case.

    ======================
    Sean Shrum
    http://www.shrum.net