Output:#!/usr/bin/perl # Right, no warnings. use strict; my $x = 1; # Variable declaration my $x = 10; # Variable suicide! print $x;
10
OK... isn't preventing this the entire point of "strict 'vars'"? (If not, then I've been seriously confused about it for a long time.)
-- I hate storms, but calms undermine my spirits. -- Bernard Moitessier, "The Long Way"
In reply to Help! My variables are jumping off a cliff! by oko1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |