On Jul 13, 2010, at 11:32, Erez Schatz <moonb...@gmail.com> wrote:
> On 13 July 2010 18:16, Shawn H Corey <shawnhco...@gmail.com> wrote: > >> Because [] define a character set; everything inside it is a character. >> That means it does not expand \1. > > That's not entirely correct. Character classes recognize variables, > escaped characters and some other regexp notation, but not \1 > back-references > > > -- > Erez > > Observations, not opinions > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > It does recognize them, it just recognizes them as octal escapes. [\8] is even more fun. It matches chr(0) or the character 8. There is some work going on in perl 5.13 to fix this (or at least give a better warning message). -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/