in reply to Looping without introducing a block
You have a second problem, You shouldn't assign to $_ without localising it first, because it's often a reference to another variable. Better yet, localize *_.
local *_; LOCK_LOOP: $_ = pop @left_to_lock; lock( $h{ $_ } ); goto LOCK_LOOP if @left_to_lock;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Looping without introducing a block
by cmeyer (Pilgrim) on Aug 03, 2005 at 16:46 UTC |