in reply to argh!
in thread $foo{bar}-() vs. $foo{bar}()

$above_post =~ s/\[1\]/\\[1\\]/;
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.

Sorry. Just couldn't resist :)

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just go the the link and check out our stats.