in reply to Using Shift with Parameters in a subroutine
The new signatures are documented in perlsub since 5.20, under Signatures.
The same, or a rather similar functionality can be enabled employing a source filter, but I think that the failure modes of a source-filter (introducing hard to debug syntax errors) are not really worth the nicer syntax for older Perl versions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Shift with Parameters in a subroutine
by RonW (Parson) on Oct 20, 2014 at 17:01 UTC | |
by tobyink (Canon) on Oct 20, 2014 at 21:23 UTC |