in reply to using local variables
Perl can help you a lot with your code if you let it. In your case, adding the line use strict; near the top of your program will make Perl tell you about undeclared variables.
In your case, you're declaring a variable @wire2 as an array, but you are actually using a hash %wire2 in the line:
$wire2{ "a"} .= $x;
This is why it's always recommended that you add the two lines near the top of your scripts:
use strict; use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using local variables
by Anonymous Monk on Mar 16, 2016 at 10:37 UTC |