You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

425 B

A basic filter

#!/usr/bin/env perl

use warnings;
use strict;
use 5.10.0;

# Extract name where given name matches "John":
while (<>) {
  say "$2 $1" if m/^(.*)\t(Jo.*?)(\t|$)/i;
}
$ ./examples/filter_authors.pl examples/authors.tsv
John Brunner
John Tolkien
Jo Walton