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

Release if.pm 0.03 to CPAN?

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

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

the reason is if.pm'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 if.pm, shipped with Perl 5.8.1, corrected this problem
by doing this instead:

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

A few modules that I currently use needs a non-broken if.pm 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 if.pm,
based on the one included in perl 5.8.1.

Thanks,
/Autrijus/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About