in reply to Re: Matching and making accesible an arbitrary number of subpatterns w/a regex?
in thread Matching and making accesible an arbitrary number of subpatterns w/a regex?
That does not work when the string doesn't contain any colon:
my $src_string = 'aaa'; my @results = $src_string =~ /([^:]*):/g; use Data::Dumper; print Dumper \@results; __END__ $VAR1 = [];
--
David Serrano
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Matching and making accesible an arbitrary number of subpatterns w/a regex?
by ikegami (Patriarch) on Aug 03, 2006 at 17:43 UTC |