- or download this
{
my @list;
...
no warnings 'exiting';
last LOOP;
}
- or download this
my @a=1..10; # update2
...
(123)(456)(789)(10)
(123)(456)(789)(10)
(123)(456)(789)(10)
- or download this
This can be extended to take more than one element at a time:
...
(Except the for version does not destroy the array.)
- or download this
$SIG{__WARN__}= sub {
return if $_[0] =~ /^Exiting subroutine/;
warn $_[0];
};