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, ); };
In reply to variable scope within eval{} by Stegalex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |