in reply to Combining two subs within a module

sub has { _search(1,@_) } sub missing { _search(0,@_) } sub _search { my( $what, $self, $p ) = @_; ... }

- tye        

Replies are listed 'Best First'.
Re^2: Combining two subs within a module (SMoP)
by stevieb (Canon) on Apr 29, 2012 at 02:54 UTC

    Sometimes one thinks too long on a single problem :)