All pastes #631248 Raw Edit

Miscellany

public text v1 · immutable
#631248 ·published 2007-07-23 20:42 UTC
rendered paste body
sub _macro_map {                                                                                                                                                                    
  my $prefix = shift;                                                                                                                                                             
  map {                                                                                                                                                                              
     my ($key) = /^(?:$prefix)(.*)/ or die "_macro_map: $_";                                                                                                                                                                                                                                                                                     
     no strict 'refs';                                                                                                                                                               
     ( $key => &$_ )                                                                                                                                                             
    } @_;                                                                                                                                                                       
}