Stegalex has asked for the wisdom of the Perl Monks concerning the following question:
In the above, $bl_id is visible within the eval block, but it is NOT visible inside of subroutine insert_budget_line_year().eval { $bl_id = insert_budget_line (); @bly_id = insert_budget_line_year ( bl_id => $bl_id, planning_horizon => @planning_horizon, ); };
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: variable scope within eval{}
by crashtest (Curate) on Jan 30, 2010 at 00:13 UTC | |
Re: variable scope within eval{}
by holli (Abbot) on Jan 29, 2010 at 22:48 UTC | |
by Stegalex (Chaplain) on Jan 29, 2010 at 23:12 UTC | |
by AnomalousMonk (Archbishop) on Jan 29, 2010 at 23:18 UTC | |
by holli (Abbot) on Jan 29, 2010 at 23:19 UTC | |
Re: variable scope within eval{}
by pileofrogs (Priest) on Jan 29, 2010 at 23:50 UTC | |
Re: variable scope within eval{}
by shmem (Chancellor) on Jan 30, 2010 at 17:18 UTC |