Skip Menu |

This queue is for tickets about the parent CPAN distribution.

Report information
The Basics
Id: 33628
Status: resolved
Priority: 0/
Queue: parent

People
Owner: Nobody in particular
Requestors: STEFFENW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: -norequire at first list position only
use parent qw(-norequire MyPackage); use parent qw(Foo Bar); why not: use parent qw(Foo Bar -norequire MyPackage);
Subject: Re: [rt.cpan.org #33628] -norequire at first list position only
Date: Wed, 27 Feb 2008 19:15:45 +0100
To: bug-parent [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hello Steffen, Show quoted text
> use parent qw(-norequire MyPackage); > use parent qw(Foo Bar); > > why not: > > use parent qw(Foo Bar -norequire MyPackage);
this is by design for code simplicity. I'm not sure there is any real use-case for that, and I think it would have made the code in parent.pm more complex. The workaround is: use Foo; use Bar; use parent qw(-norequire Foo Bar MyPackage); or use parent qw(Foo Bar); use parent qw(-norequire MyPackage); I think neither is too inconvenient to use :) -max