Regexp-Bind
view release on metacpan or search on metacpan
=head1 NAMED VARIABLE BINDING
To use named variable binding, please set $Regexp::Bind::USE_NAMED_VAR to non-undef, and then matched parts will be bound to named variables while using bind(). It is not supported for global_bind(), bind_array() and global_bind_array().
$Regexp::Bind::USE_NAMED_VAR = 1;
bind($string, $regexp, qw(field_1 field_2 field_3));
print "$field_1 $field_2 $field_3\n";
=head1 EMBEDDED REGEXP
Using embedded regexp syntax means you can embed fields right in
regexp itself. Its embedded syntax exploits the feature of in-line
commenting in regexps.
The module first tries to detect if embedded syntax is used. If
detected, then comments are stripped and regexp is turned back into a
simple one.
Using embedded syntax, for the sake of simplicity and legibility,
( run in 1.755 second using v1.01-cache-2.11-cpan-71847e10f99 )