- or download this
package IO::Handle;
...
1;
- or download this
use Perl6::FH;
...
# $_ has already been chomp()ed
# with whatever $/ is right now
}
- or download this
is_chomped STDIN ""; # paragraph mode
is_chomped STDIN "%%\n"; # fortune mode
- or download this
is_not_chomped STDIN;
- or download this
is_chomped ARGV;
while (<>) {
# $_ is chomped
}