In other words, you forgot to escape the brackets, thus creating a character class. Of course, since the right side isn't a regex, it almost looks like we're substituting something back to itself. Weird.$above_post =~ s/\[1\]/\\[1\\]/;
Sorry. Just couldn't resist :)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
In reply to (Ovid - just having a little fun) RE: argh!
by Ovid
in thread $foo{bar}-() vs. $foo{bar}()
by rlk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |