my %functions_hash = ( '\.vms' => sub { $_[0] =~ s{/}{} } ); ... if ( $data =~ /$key/ ) { $value->( $data ); }
In reply to Re: Using a regex function from a hash
by friedo
in thread Using a regex function from a hash
by perlNinny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |