[Perl] Regexp help

nothingmuch nothingmuch at mac.com
Sat Jan 5 06:06:28 PST 2002


i have a regexp for a turing machine utility:

$sooey =~ s/([01_\@\#\$\%\&a-zA-Z])/$i,_,++$i,$1,>\n/g;

i want ++$i to actually *BE* ++$i (i mean $i increased by one, and 
returned)

i'm not a regexp expert, so how do you do this?



More information about the Perl mailing list