Sub::Signatures

Sub::Signatures module can use proper signatures for subroutines, including dispatching.
Download

Sub::Signatures Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Curtis Poe
  • Publisher web site:
  • http://search.cpan.org/~ovid/

Sub::Signatures Tags


Sub::Signatures Description

Sub::Signatures module can use proper signatures for subroutines, including dispatching. Sub::Signatures module can use proper signatures for subroutines, including dispatching.SYNOPSIS use Sub::Signatures; sub foo($bar) { print "$barn"; } sub foo($bar, $baz) { print "$bar, $bazn"; } foo(1); # prints 1 foo(2,3); # prints 2, 3 foo(2,3,4); # fatal error sub bar($var) { print "$varn"; } sub bar(fallback) { my ($this, $that) = @_; print "fallback $this, $thatn"; } bar(1); # prints 1 bar(2,3); # prints fallback 2, 3 bar(2,3); Requirements: · Perl


Sub::Signatures Related Software