$foo = $bar; if( $foo ) { ... #### #!/usr/bin/perl use strict; use warnings; my $foo = 1; my $bar = 2; if ($foo = 2) { print "foo is 2\n"; } if ($foo = $bar) { print "foo is bar two too\n"; } #### Found = in conditional, should be == at ./tpl line 8. foo is 2 foo is bar two too