[Xastir] Feature idea for Xastir

Curt, WE7U archer at eskimo.com
Tue Aug 28 17:48:53 EDT 2007


A better version which preserves comment lines:


    > cat PigLatin2.pl
    #!/usr/bin/perl -n
    if (m/^#/) { print; next; }
    @pieces = split /\|/;
    $pieces[1] =~ s/\b(qu|y(?=[^t])|[^\W\daeiouy]*)([a-z']+)/$2.($1||w).ay/eg;
    print join '|', @pieces;


--
Curt, WE7U: <www.eskimo.com/~archer/>     XASTIR: <www.xastir.org>
  "Lotto:  A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
The world DOES revolve around me:  I picked the coordinate system!



More information about the Xastir mailing list