2022-1-20 14:20 Darren Duncan <darren@darrenduncan.net> wrote: > > So here's a question. The way signatures work now, if one puts "@" at the > end > of the signature, > Would you recommend the following code to Perl users if they want the old codes to be a signature without changing its behavior? # Old code sub f1 { my ($a1, $a2) = @_; } sub f2 { my ($a1, $a2) = @_; } # ... sub f1000 ($a1, $a2) { my ($a1, $a2) = @_; } # New codes use feature 'signatures'; sub f1 ($a1, $a2, @) { } sub f2 ($a1, $a2, @) { } # ... sub f1000 ($a1, $a2, @) { }Thread Previous | Thread Next