Subpatmat freeware
Subpatmat
Added: January 18, 2010 | Visits: 828
Sub::PatMat can call a version of subroutine depending on its arguments. SYNOPSIS use Sub::PatMat; # basics: sub fact : when($_[0] <= 1) { 1 } sub fact { my ($n) = @_; $n*fact($n-1) } print fact(6); # referring to things other than @_: sub mysort : when($a < $b) { -1 } sub mysort :...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (92): Sub::PatMat Download |