[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#617324: ITP: libtrue-perl -- Perl module to automatically return a true value when a file is required



On Mon, 2011-03-07 at 20:36 -0800, Ivan Kohler wrote:
> Package: wnpp
> Severity: wishlist
> Owner: Ivan Kohler <ivan-debian@420.am>
> 
> * Package name    : libtrue-perl
>   Version         : 0.16
>   Upstream Author : chocolateboy, <chocolate@cpan.org>
> * URL             : http://search.cpan.org/dist/true
> * License         : Perl
>   Programming Lang: Perl
>   Description     : Perl module to automatically return a true value when a file is required
> 
> Perl's require builtin (and its use wrapper) requires the files it loads
> to return a true value. This is usually accomplished by placing a single
> 
>     1;
> 
> statement at the end of included scripts or modules. It's not onerous to
> add but it's a speed bump on the Perl novice's road to enlightenment.
[...]

And importing a magic module is an improvement?!  How is a Perl novice
ever going to know about this?

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: