http://www.perlmonks.org?node_id=935531


in reply to Re^11: aXML doesn't compile
in thread Thanks to Ikegami, Chromatic & Corion

I don't want to run perlnights, I want to process an aXML template, but what you gave me is broken.

Replies are listed 'Best First'.
Re^13: aXML doesn't compile
by Logicus (Initiate) on Nov 03, 2011 at 00:57 UTC

    I dunno, that code I sent you is what I've been building these last couple of months and I've been using plack & starman exclusively to run it during that time because it's so sweet fast.

      I'll grant you that the error message came up really fast.

        You not got it working yet?

        cpan install Task::Plack mysql import the perlnights.sql file extract aXML.tar.gz to /etc/perl extract Plack.tar.gz to /etc/perl extract www.tar.gz to /var/www cd /var/www plackup -s Starman -r action.psgi -R /etc/perl,/var/www open browser visit localhost:5000 you should now see the perlnights website on your screen.
Re^13: aXML doesn't compile
by Logicus (Initiate) on Nov 03, 2011 at 02:03 UTC

    What I've given you there is an exact copy of what is running just fine here, it should do the same on your computer as it does on mine as long as all the files are in the right places and everything from Task::Plack is installed. I can email you screen shots of it running if you like.

    Try entering your DSN information in the Conf.pm?

    Other than that I don't know why it's not working for you.

    Lets say you get plackup accepting requests on port 5000

    Make a folder in the actions folder, call it "test"

    Make a file in "test" and call it body.aXML

    edit that file as you wish

    visit localhost:5000/?action=test to see the output

      $ tar tzf aXML.tar.gz | grep 'Conf\.pm' || echo "missing" missing

      Why would I install Plack or a MySQL server???

      GOTO 935531

        Err... cause it's awesome and Miyagawa's a genius?

        as for MySQL, well that's just what I use, shouldn't be too hard to make it use a different DB tech as it uses the standard DBI interface, and as far as I know it supports several types.

        Or would you prefer working with files? The first aXML only worked with files as I didn't know about SQL when I wrote it. The current version doesn't have any file accessors yet really beyond the inclusion routines.

        I could whip some up and send you an updated engine package if you want?

        $ tar tzf aXML.tar.gz | grep 'Conf\.pm' || echo "missing"

        Try this instead :

        $ tar tzf www.tar.gz | grep 'Conf\.pm' || echo "missing"

        Output : www/Conf.pm