develooper Front page | perl.perl5.porters | Postings from October 2003

Release 0.03 to CPAN?

Thread Next
Autrijus Tang
October 21, 2003 01:57
Release 0.03 to CPAN?
Message ID:
Hello.  As you may be aware, the current version of on CPAN is
0.01000001, which breaks this test case:

    use if 1, open => ':utf8';
    # Not enough arguments for open at line 1, at EOF

the reason is's implementation says:

    my $p = shift;               # PACKAGE
    eval "require $p" or die;    # Adds .pm etc if needed

which translates to eval "require open", but the latter is a keyword.

Version 0.03 of, shipped with Perl 5.8.1, corrected this problem
by doing this instead:

    my $p = $_[0];                # PACKAGE
    (my $file = "$") =~ s!::!/!g;
    require $file or die;

A few modules that I currently use needs a non-broken to function
correctly.  I would like to put (if => 0.03) in their PREREQ_PM, but
that will need your help on releasing 0.03 into CPAN separately.

So, I'd be very grateful if you can release a new version of,
based on the one included in perl 5.8.1.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About