Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • It should be compatible with perl 5.004_05

    Sorry, but it's not because you're using exists on arrays, which wasn't supported until Perl 5.6.

    $ /usr/local/perl/5.4.5/bin/perl -wc lib/XML/Tiny.pm
    exists operator argument is not a HASH element at lib/XML/Tiny.pm line 94.

    $ /usr/local/perl/5.5.3/bin/perl -wc lib/XML/Tiny.pm
    exists operator argument is not a HASH element at lib/XML/Tiny.pm line 94.

    --
    Close the world. txEn eht nepO
    • Yeah, someone else spotted that too - fixed in 1.01, which will hit the CPAN shortly.
      • The synopsis shows:

            my $document = parsefile($xmlfile);

        But it doesn't tell me what $document looks like. Am I going to call methods on it to get what's in it? Is it a bunch of hashes of arrays of hashes? How do I use it?

        I'm sure that's answered later in the docs, but to me the synopsis ought to demonstrate enough of the API to give me the flavor of it so I can decide if I want to spend the time reading the docs to learn the module.

        --
        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers