Skip to content

Instantly share code, notes, and snippets.

@jdoege
Created May 20, 2016 19:50
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 jdoege/1debfa44457d923806bf7902b6ff7092 to your computer and use it in GitHub Desktop.
Save jdoege/1debfa44457d923806bf7902b6ff7092 to your computer and use it in GitHub Desktop.
use v6;
sub MAIN ( Str :$mapfile!, Str :$patfile!, Str :$outfile! ) {
say "mapfile: $mapfile";
say "patfile: $patfile";
say "outfile: $outfile";
# Read Channel Map
my $MFH = open "$mapfile", :r;
for $MFH.lines -> $line {
}
$MFH.close;
# Develop list of QDR channels
# Read pattern / vectors, 4 at a time and convert to QDR, print out
my $PFH = open "$patfile", :r;
my $OFH = open "$outfile", :w;
for $PFH.lines -> $line {
$OFH.say($line);
}
$PFH.close;
$OFH.close;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment