Skip to content

Instantly share code, notes, and snippets.

@treyharris
Created September 11, 2019 18:59
Show Gist options
  • Save treyharris/31302828e3e02e04bebb77fdd0c35974 to your computer and use it in GitHub Desktop.
Save treyharris/31302828e3e02e04bebb77fdd0c35974 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use autodie;
#use utf8;
use PerlIO::eol;
use open IN => ':raw:eol(CRLF?)';
while (<>) {
chomp;
print "The line is '$_'.\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment