in reply to finding { and }

UPDATE! Oops!! I were wrong...

I didn't take care of
$a=~'a' is correct
I thought that it would be
$a=~m'a' instead
But
perl -e "$a='b}b';print 'Mached!' if $a=~'}'"
runs as expected.

It's not necessary the backslash in '{'
Update In response to drinkd post, I've to say that both
perl -e "$a='b}b';print 'Mached!' if $a=~'}'" perl -e "$a='b}b';print 'Mached!' if $a=~'}'"
are correct. I don't have to write backlashes.
Hopes

Replies are listed 'Best First'.
Re: Re: finding { and }
by drinkd (Pilgrim) on Oct 17, 2001 at 00:30 UTC
    Only the left curly brace is a metacharacter. drinkd