Skip to content

Instantly share code, notes, and snippets.

@Tux
Created July 11, 2015 14:33
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/d7f5afd66fea7eecc686 to your computer and use it in GitHub Desktop.
Save Tux/d7f5afd66fea7eecc686 to your computer and use it in GitHub Desktop.
#!perl6
use v6;
use Slang::Tuxic;
use Text::CSV;
sub Filter (CSV::Row $r) {
$r<legs> < 8 && $r<code> > 2;
} # Filter
csv (in => "legs.csv",
out => $*OUT,
headers => "auto",
filter => &Filter);
csv (in => "legs.csv",
out => $*OUT,
headers => "auto",
filter => sub $ (CSV::Row $r) {
$r<legs > 70;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment