in reply to Re: Perl array declaring
in thread Perl array declaring
Variables can be declared as many times as you like...
use strict; our $foo = 123; our $foo; our $foo; our $foo; our $foo; print(our $foo, "\n");
Also, strict refs don't force you to declare a variable...
use strict "refs"; $foo = 123; # ok print "$foo\n"; # still ok
... it is strict vars that forces you to declare variables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl array declaring
by BillKSmith (Monsignor) on Jun 01, 2013 at 20:55 UTC | |
by Laurent_R (Canon) on Jun 01, 2013 at 22:09 UTC | |
by BillKSmith (Monsignor) on Jun 02, 2013 at 03:51 UTC |