- or download this
{
local $_;
...
...
} while defined $_;
}
- or download this
for (;;) { # Loop until "last".
local $_ = <INHANDLE>;
...
last if not defined $_;
}
- or download this
{ # Loop while "redo".
local $_ = <INHANDLE>;
...
redo if defined $_;
}
- or download this
my $block = sub { ... };
&$block while <INHANDLE>;
&$block foreach undef;
- or download this
for (;;) { # Loop until "last".
local $_ = <DATA>;
...
last unless defined $_;
}
- or download this
a
b
c
[undef]