Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

argh!

by rlk (Pilgrim)
on Oct 07, 2000 at 11:00 UTC ( [id://35730]=note: print w/replies, xml ) Need Help??


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

$above_post =~ s/[1]/[1]/g;
-Ryan

Replies are listed 'Best First'.
(Ovid - just having a little fun) RE: argh!
by Ovid (Cardinal) on Oct 07, 2000 at 20:11 UTC
    $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.

RE: argh!
by rlk (Pilgrim) on Oct 07, 2000 at 20:13 UTC
    Point taken.
    -Ryan

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://35730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-24 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found