#!/usr/bin/perl -w use strict; use Convert::AcrossLite; if ($#ARGV != 0) { print "Usage: convert_puz.pl \n"; exit; } my $ac = Convert::AcrossLite->new(); $ac->in_file($ARGV[0]); my ($across_ref, $down_ref) = $ac->get_across_down; my %across = %$across_ref; my %down = %$down_ref; my $id = $ARGV[0]; my $title = $ac->get_title; $title =~ s/\"/"/g; my $copy = $ac->get_copyright; $copy =~ s/\xa9/(C)/g; my $author = $ac->get_author; my $size = $ac->get_rows; print "\n"; print "\n"; foreach my $key (sort keys %across) { print " " . $across{$key}{clue} . "\n"; } foreach my $key (sort keys %down) { print " " . $down{$key}{clue} . "\n"; } print "\n";