in reply to Scoping question
Hello
The problem is, that the 'my $item' declaration only happens if the '$self->grid($x, $y)'
call actually returns something.
Other wise, there is no 'my' declaration, so you get the error stating that the
'$item' var is not known about.
Hope that helps
Wonko
Update: I stand corrected. Thank you pg
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Scoping question
by pg (Canon) on Nov 03, 2004 at 20:49 UTC |
In Section
Seekers of Perl Wisdom