Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Contents of @_ using subroutine signatures with default valuesby perlfan (Vicar) |
on Jul 14, 2020 at 00:54 UTC ( [id://11119278]=note: print w/replies, xml ) | Need Help?? |
> @_ probably wont be populated
I think it is important to note that shift is also destructive, so using that as the idiomatic control of the experimental feature shows that processing it the accepted way more often than not also results in @_ not being populated. This doesn't apply to another idiom (that I even use some times) that are non-destructive - like, my %opts = @_ - assuming params are passed in like foo(param1 => 2, param2 => 'foo').
In Section
Seekers of Perl Wisdom
|
|