in reply to Re: Need Perl book advice
in thread Need Perl book advice

Your script "anew" sounds nice. care to post it? Also should why do you have to add a hash entry to anew? Should I not be able to just add a template to share/anew? share/anew/tex/ c/ pmf/ pmo/ .../ Then in each subdirectory have module for that template to handle building it. Of course there is alwasy the template toolkit.

Replies are listed 'Best First'.
Re^3: Need Perl book advice
by Ambidangerous (Scribe) on Jul 31, 2004 at 17:35 UTC

    The odd thing about anew is, it was created with anew. Sounds like a chicken & egg sort of deal, but the hint to solve this riddle is in the version number ;-)

    And, of course, once you post code in public, you become acutely aware of the hacks . . . . but the important thing is, I wrote it and it works.

    $jPxu=q?@jPxu?;$jPxu^=q?Whats?^q?UpDoc?;print$jPxu;
      Seems to me that an equally important question would have been to ask for the templates too :).

        I know, but posting that much code at once, I felt sort of like the guy who's asked to do a wedding toast and goes on with a speech for half an hour. Here's two of the templates (out of eight, so there is a quantity of mercy here). The point would be to make your own, according to your own needs.

        First, the simplest perl program that implements the standard --help and --version options: anewmain.pl. (Notice I'm a firm believer in pod.)

        Second, in case any of you have ever seen GNU Lilypond, it is a cool music typesetting program. Although it isn't Perl, I had to do a lot of language learning before I could produce good copy with it. I'm proud of the result (template.ly). The syntax is similar to LaTeX:

        And there you go; 'anew' can be adapted as stated in the original article, according to your needs.

        $jPxu=q?@jPxu?;$jPxu^=q?Whats?^q?UpDoc?;print$jPxu;