in reply to Re^2: Perl array declaring
in thread Perl array declaring
Variables can be declared as many times as you like...True only for global variables, and even then, not without warnings. Change your 'our' to 'my' and your program no longer works. You are creating new variables with the same name. Warnings inform you that the new variable masks an earlier declaration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl array declaring
by Laurent_R (Canon) on Jun 01, 2013 at 22:09 UTC | |
by BillKSmith (Monsignor) on Jun 02, 2013 at 03:51 UTC |