Skip to content

Instantly share code, notes, and snippets.

@Tux
Created February 13, 2015 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tux/9e4a125bfe499e63c9eb to your computer and use it in GitHub Desktop.
Save Tux/9e4a125bfe499e63c9eb to your computer and use it in GitHub Desktop.
method getline (IO $io) {
my Bool $chomped = $io.chomp;
$io.chomp = False;
$!io = $io;
self.parse ($io.get); # Continue with next line on 2027
$!io = IO;
$io.chomp = $chomped;
return @!fields;
} # getline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment