Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Perl Regex Question

Name: Anonymous 2012-02-26 1:44

I've been using /e to execute code with something I've captured in regular expressions. Like so:

$string =~ s{(tExT)}
            { do_something($1) }eg;


However, I've been wondering if there's anything else I can do in there. Like for example, could I use if-statements in there?

Name: Anonymous 2012-02-26 2:44

>>3
Well if it didn't work then it doesn't work I guess.

Gee did you ever learn the Scientific Method when you went to school or didn't you go at all?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List