Bastian Angerstein wrote:
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
On Feb 12, 2004, at 7:34 AM, Bastian Angerstein wrote:
Hi
Hello.
I have two strings 0x1479ee und 0x1479fe.
The strings a in $var1 and $var2.
if I do:
if ( $var2 =~ /\Q$var1\E/)
It matches.
You sure about that?
#!/usr/bin/perl
my($var1, $var2) = ("0x1479ee", "0x1479fe");
if ($var2 =~ /\Q$v