Re: Getopt::ArgvFile
[email protected] ((Jochen Stenzel)) Sun, 22 Jul 2001 15:47:19 +0200
| Newsgroups | perl.perlpoint |
|---|---|
| Message-ID | <[email protected]> |
Hello, Ask,
>> seems like the PerlPoint-Converters package is missing the
>> Getopt::ArgvFile dependancy.
>
>... and it (pp2html?) should have a "use 5.6" when it only works
>with 5.6, no? :-/
that's all more or less my fault, sorry. I declared that
PerlPoint::Package is compatible with 5.00503 again and believed that
myself, but it finally turned out to need 5.6. The reason for this is
that I use a pseudohash, built by fields::phash(), and this function is
no part of the 5.005 version of fields.pm. One time we got a version to
run under 5.005 with a fields.pm copied from a 5.6, but unfortunately
we cannot reproduce that (and it is a trouble, of course, especially if
someone has no 5.6).
Besides pseudo hashes, object inheritance as used in tag declaration
does not work in 5.005 as it does in 5.6. Finally, some patterns seem
to be evaluated differently.
OK. There are still a lot of 5.005 installations obviously, so we are
going to do these things:
* As pseudohashes had to go in 5.7.2, I'll remove the one and only
pseudohash in the parser. (I liked the idea of pseudohashes, by
the way, but nevertheless they are only really compatible to 5.6
now, so it makes no sense to use them).
* Lorenz figured out that the inheritance problem in 5.005 can be
solved by explicitly "using" all modules of the hierarchy. So
converters will typically have to add one line
("use PerlPoint::Tags").
* As for the pattern problem, I'm unsure yet. It will not affect
converters because it only causes the parser to provide a string
in several parts where under 5.6 it would be one string. This will
result in slightly decreased performance but nothing more. On the
other hand, PerlPoint::Package does not pass its test unmodified
under 5.005, so I will have to adapt the tests which could need
more work. Honestly spoken, I'd like to have the parser behave
similarly under all versions og perl ;-)
To sum it up, we already planned to publish accordingly adapted
releases in the next weeks. Maybe we can accelerate that.
> - ask (who tried bruteforce for ~15 minutes to get it installed and
> to run without luck.).
In case you want to try it before the new releases will be published,
here's what to do:
* Find the phash() call in PerlPoint::Parser. Replace it by a
usual hash reference. (You'll see instantly how to do this.)
* In pp2html, look for "use PerlPoint::Tags::...". Add
"use PerlPoint::Tags".
As I wrote before, we'll try to provide patched versions as soon as
possible.
Jochen