Re: SPOILER: Solution to Perl Quiz of the Week #26 (Acrostic puzzle formatter)

Jon Ericson <[email protected]> Tue, 19 Oct 2004 11:57:51 -0700
Newsgroups gmane.comp.lang.perl.qotw.discuss
Organization I speak for myself; not JPL, NASA nor the US Government
Message-ID <[email protected]>
Greg Matheson <[email protected]> writes:

> On Thu, 14 Oct 2004, Mark Jason Dominus wrote:
>
>
>> This week, you'll write a program to format and print puzzles.  

> My solution puts two copies of the puzzle on one piece of B5 paper
> using latex. The program assumes quotations will not be longer than
> 99 letters plus words.

I tried to get this working, but I get:

$ ./matheson.pl input.text
Use of uninitialized value in hash element at ./matheson.pl line 114, <> line 25.
Use of uninitialized value in hash element at ./matheson.pl line 114, <> line 25.
Use of uninitialized value in concatenation (.) or string at ./matheson.pl line 133, <> line 25.
...

No doubt I've screwed something up.  (I left off the -d option to
perl.  Is that needed?)

I was thinking this might be an excellent application for PerlTex
(http://www.ctan.org/tex-archive/macros/latex/contrib/perltex/).  It
would mean turning a script "inside out" -- writing a document that
called perl routines.  But given the latex output, it wouldn't be too
difficult, I'd think.

Jon