in reply to Illogical logic statement
When I execute:
#!/usr/bin/perl use strict; use warnings; my $str = 'false'; if ($str == 'true') { print "$str=true\n"; } else { print "$str=false\n"; }
I get:
Argument "true" isn't numeric in numeric eq (==) at noname.pl line 7. false=true Argument "false" isn't numeric in numeric eq (==) at noname.pl line 7.
which is a pretty good heads up! Always use strictures (use strict; use warnings; - see The strictures, according to Seuss).
True laziness is hard work
|
---|
In Section
Seekers of Perl Wisdom