in reply to Re: Regex Substitution in sub
in thread Regex Substitution in sub

sub interpret_clock { my %codes = (

It is probably a good idea to build the hash outside the sub, to avoid building it each time the sub is called.

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: Re: Regex Substitution in sub
by Ovid (Cardinal) on Jun 04, 2003 at 19:07 UTC

    Oops. You're right. Some days it doesn't pay to chew through the straps and log on.

    Cheers,
    Ovid

    New address of my CGI Course.
    Silence is Evil (feel free to copy and distribute widely - note copyright text)