- or download this
while (<STDIN>) {
print;
}
- or download this
for (1..2) {
while (<STDIN>) {
print;
}
}
- or download this
local $/;
for (1..2) {
...
print;
}
}
- or download this
local $/;
...
print;
$_ = <STDIN>; # Returns EOF
- or download this
local $/;
($_) = <STDIN>; # Returns first chunk
($_) = <STDIN>; # Returns second chunk