Ok all you smart people, here's one. I want:
to die happy. The ignore case flag (/i) seems to freak out when it sees $$$. It doesn't crash, mind you; it just doesn't pass. If I define bob as:
my $bob = 'BOB\$\$\$';
It works. Is there any easier way to get the script to treat $ literally?
Nick
Code:
my $bob = 'bob$$$';
if('BOB$$$' =~ /$bob/i) {
die "happy";
} else {
die "sad";
}
to die happy. The ignore case flag (/i) seems to freak out when it sees $$$. It doesn't crash, mind you; it just doesn't pass. If I define bob as:
my $bob = 'BOB\$\$\$';
It works. Is there any easier way to get the script to treat $ literally?
Nick