in reply to Re^2: Using a stored condition
in thread Using a stored condition
print "yeah\n" if $method2->($a,$b,$c,$d);
in some scope where $c and $c aren't previously declared. Declare them with my.
In case you wonder why $a and $b are missing from perl's complaint: Those variables are special. They are used in sort functions, so they exist anyways. It is discouraged to use them for any other purpose. See perlvar.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using a stored condition
by legend (Sexton) on Mar 02, 2008 at 23:13 UTC | |
by shmem (Chancellor) on Mar 02, 2008 at 23:44 UTC | |
by blazar (Canon) on Mar 03, 2008 at 00:12 UTC | |
by jdporter (Paladin) on Mar 03, 2008 at 01:34 UTC | |
|
Re^4: Using a stored condition
by legend (Sexton) on Mar 02, 2008 at 23:22 UTC | |
by TGI (Parson) on Mar 03, 2008 at 00:43 UTC | |
by shmem (Chancellor) on Mar 02, 2008 at 23:50 UTC | |
by jettero (Monsignor) on Mar 02, 2008 at 23:45 UTC |