in reply to Re: Re: String parameter parsing
in thread String parameter parsing

Ah, sorry, I overlooked that bit. In that case, you could just put the substitution back in at the end of my loop.

Alternatively, the whole thing could be rewritten as a single substitution, with the /e modifier so the replacement will be eval'ed:

$content =~ s/<\?Function\(([^\)]*)\)\?>/ my $params = $1; my @params = $params =~ m,"([^"]*)",g; some_param_stuff(@params); /ge;

Replies are listed 'Best First'.
Re: Re: Re: Re: String parameter parsing
by Beatnik (Parson) on Jan 19, 2001 at 14:34 UTC
    Muchos kudos :) I'll benchmark it :)

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.