I'm building a new Squeeze server to replace an Etch one, and have 2 problems with an existing script. Not being a Perl expert (or even close!), I've had a poke around but can't find the cause. 1st is
Unable to recognise encoding of this document at /usr/share/perl5/XML/ +SAX/PurePerl/EncodingDetect.pm line 100
It's very worth mentioning that I get this in the apache2 log when I restart Apache2, so could indicate a wrong/missing package Installed xml packages:
ii libexpat1 2.0.1-7 + XML parsing C library - runtime library ii libxml-dumper-perl 0.81-1 + Perl module for dumping Perl objects from/to XML ii libxml-grove-perl 0.46alpha- +12 Perl module for accessing parsed *ML instances ii libxml-libxml-perl 1.70.ds-1 + Perl interface to the libxml2 library ii libxml-namespacesupport-perl 1.09-3 + Perl module for supporting simple generic namespac +es ii libxml-parser-perl 2.36-1.1+b +1 Perl module for parsing XML files ii libxml-parser-ruby1.8 0.7.1-1.1 + Interface of expat for the scripting language Ruby + 1.8 ii libxml-perl 0.08-2 + Perl modules for working with XML ii libxml-sablot-perl 1.0-2+b1 + encapsulation of the Sablotron XSL processor ii libxml-sax-perl 0.96+dfsg- +2 Perl module for using and building Perl SAX2 XML p +rocessors ii libxml-simple-perl 2.18-3 + Perl module for reading and writing XML ii libxml-twig-perl 1:3.34-1 + Perl module for processing huge XML documents in t +ree mode ii libxml-xpathengine-perl 0.12-2 + re-usable XPath engine for DOM-like trees ii libxml2
2nd is a problem with PDL:
Undefined subroutine &Proj::pj_init called at /usr/share/perl5/Avbrief +/Projection.pm line 88
Line 88 is:
$p->{pj} = Proj::pj_init(4, ["proj=$p->{proj}", "units=$p->{units}", "lat_0=$p->{lat_0}", "lon_0=$p->{lon_0}"]);
I've tried
$p->{pj} = Proj::pj_init_plus(4, ["proj=$p->{proj}", . . .
and get
Undefined subroutine &Proj::proj_init_plus called at /usr/share/perl5/ +Avbrief/Projection.pm
Cheers, Martin

In reply to SAX and PDL probs by martinm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.