Hi
I have two strings 0x1479ee und 0x1479fe.
The strings a in $var1 and $var2.
if I do:
if ( $var2 =~ /\Q$var1\E/)
It matches.
how can I match an the string and not on each sign?
As someone else pointed out, I am surprised that you got a match... Just out of curiosity though, why not do this:
if ( $var2 eq $var1 )
Wouldn't that achieve what you want?
Alan
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>