C
Che
Hi:
What is the difference between
my $str_3 = "c:\windows"; <---- (1)
my $str_3 = 'c:\windows'; <---- (2)
If I use (1) the "if" condition fails and if i use (2) the "if" condition is true.
(1) or (2) here followe by this code.
if( $str_3 =~ m!c:\\windows! )
{
print"\n matches";
}
else
{
print"\n It doesn't match";
}
Thakns
What is the difference between
my $str_3 = "c:\windows"; <---- (1)
my $str_3 = 'c:\windows'; <---- (2)
If I use (1) the "if" condition fails and if i use (2) the "if" condition is true.
(1) or (2) here followe by this code.
if( $str_3 =~ m!c:\\windows! )
{
print"\n matches";
}
else
{
print"\n It doesn't match";
}
Thakns