in reply to (crazyinsomniac: bah) Re^2: Question Marks in Subroutine Names
in thread Question Marks in Subroutine Names

++crazyinsomniac ... I would probably go just one step further and use type-globbing to simplify the subsequent function call - For example ...

*{'is_contact_female?'} = sub { my @args = @_; ... }; &{'is_contact_female?'}( @args );

I first encountered this manner of subroutine assignment in Damian Conway's selfGOL obfuscation, a "must-read" for any aspiring obfuscator.

 

  • Comment on Re: (crazyinsomniac: bah) Re^2: Question Marks in Subroutine Names
  • Download Code