This is has been bugging all day ...
my $var = "WooHoo\n";
# I know that this will print ...
print $var if $var =~ /^Woo/;
# and I know that this will print ...
print $var if $var !~ /^Hoo/;
# and I think I understand whats
# going on here ...
$var =~ s/W/H/;
# But I didn't expect this ...
$var !~ s/H/W/;
Here's the ouput ...
Useless use of not in void context at ./tilda_q.pl line 18.
It does complain a bit about void context ... but so what?
Could somebody enlighten me?
|Plankton: 1% Evil, 99% Hot Gas.|