in reply to Re: Using variables in RegEx
in thread Using variables in RegEx

> First of all, there are no "predefined" variables. < The NAMES are predefined, eg $1, $', etc. > $sentenceCount doesn't seem to make much sense with s///, though. < I want to insert a unique html anchor for each sentence, so I need to increment the number to construct a unique name.

Replies are listed 'Best First'.
Re^3: Using variables in RegEx
by ikegami (Patriarch) on Aug 01, 2008 at 20:20 UTC

    The NAMES are predefined, eg $1, $', etc

    What I meant is that it's not a meaningful distinction. Since all variable should be declared, it's like saying "electronic television". Until they use laser circuitry for TVs, there's no such thing as electronic televisions. There are just televisions.