in reply to Orbital starters
in my understanding, this "initializes" $d with undef. Why don't youmy ($class,$d) = shift;
Personally, I'd do it this ("mixed") way:my ($class,$d) = @_;
to have the argument list in the same manner as in the corresponding method call.my $class = shift; my ($args, $as, $needed) = @_;
Update: see also this discussion from several years ago
Update: typo corrected. Thanks AnomalousMonk!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Orbital starters
by holyghost (Beadle) on Oct 10, 2017 at 10:26 UTC | |
by soonix (Chancellor) on Oct 10, 2017 at 14:29 UTC | |
by Anonymous Monk on Oct 10, 2017 at 13:39 UTC |