there are too many sub vars needed in the block to have that stuff in a seperate sub without passing tons of args around -- so i wanted to localize them in a breakable blocksub configure { my $setting_a= undef; my $setting_b= undef; { run a bunch of things setting combinations of a or b , last } do someting with settings a and b }
In reply to Re^4: 'block' idiom needed
by nmerriweather
in thread 'block' idiom needed
by nmerriweather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |