Subject: | installed fine using CPAN but won't run for me |
Date: | Wed, 7 Oct 2009 10:35:24 -0700 |
To: | bug-XML-CAP [...] rt.cpan.org |
From: | Russ Welti <russ [...] iris.washington.edu> |
Hi. Thank you for providing this service.
I just downloaded and tried out XML::CAP. I used CPAN and it
installed all
the latest versions of the dependent code.
But I can't get even the 'use' statements to work, I get this:
Show quoted text
> $ test.pl
> Global symbol "@xp_nodes" requires explicit package name at /export/
> home/lib/perl5/site_perl/5.8.8/XML/CAP/Parser.pm line 99.
> Compilation failed in require at test.pl line 4.
> BEGIN failed--compilation aborted at test.pl line 4.
>
>
> $ cat test.pl
> #!/export/home/bin/perl
>
> use XML::CAP;
> use XML::CAP::Parser;
>
> my $parser = XML::CAP::Parser->new();
> $parser->parse_file( "messagecap449176-01.xml" );
>
> $ which perl
> /export/home/bin/perl
I realize that if I turn off 'strict' it might compile, but it is
probably
a part of a larger problem, so I think I'll wait and see what you have
to say.
Sincerely
Russ Welti
IRIS Data Management Center 206.547.0393 voice
1408 NE 45 St. Suite 201 206.547.1093 fax
Seattle, WA 98105 russ@iris.washington.edu