... which produces the output:#!/usr/bin/perl use warnings; use strict; use diagnostics; my $foo = 1; if($foo = 2) { print "Boo!\n"; }
... which kind of explains it really.Found = in conditional, should be == at hole.pl line 8. (#1) (W syntax) You said if ($foo = 123) when you meant if ($foo == 123) (or something like that). Boo!
In reply to Re: Found a Perl hole
by davis
in thread Found a Perl hole
by NewsToYou!
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |