in reply to Matching character
$str = "testing\";
$str =~ /\\$/;
This is easy to do when typing code directly into a node, you would catch this quickly but for the new monks:
The backslash in this case will escape the double quote (") and with warnings turned on you get this:
Without warnings you get "Bareword found where operator expected at ..."
my $str = "testing\\";
print "matched!" if $str =~ /\\$/;
You are right. I did not test. Thanks
An organised event
A traditional gathering
With family and friends
I don't celebrate the New Year
Adjusting my clocks for the Leap Second
I can't remember
Results (206 votes). Check out past polls.