Help for this page

Select Code to Download


  1. or download this
    {
       package Smart::Dispatch::ConditionList;
    ...
          ref $_[0] eq 'CODE' ? 'dispatch' : 'value';
       }
    }
    
  2. or download this
    use 5.010;
    use strict;
    ...
    # call dispatch table on '1000' but only if the dispatch table
    # has an entry that covers value '4'.
    say $dispatch.1000 if $dispatch ~~ 4;