in reply to argh!
in thread $foo{bar}-() vs. $foo{bar}()
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.
|
|---|