#!/usr/local/bin/perl -w # turns an MCD qlist (over GF2) into an alist eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift; $_ = <>; ($n,$m,$junk) = split ; if($junk != 2 ) { print STDERR " warning, third integer is $junk\n" ; } print $n," ",$m,"\n" ; for ( $i=1 ; $i <=3 ; $i ++ ) { $_ = <>; print ; } while ( <> ) { @a = split ; for ( $i = 0 ; $i < $#a ; $i += 2 ) { print $a[$i],"\t" ; } print "\n" ; }