use strict; use warnings; my $x=45; # \$x prevents $x from being evaluated when we build the # condition. my $sCondition="\$x == 100"; # we're resetting $x now just to prove that # $x will be evaluated later on when we eval the # generated code $x=100; # <" };