Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my code:
Gives me errors indicating it's looking for a hash that doesn't exist.$string = hithereHelloHellohithere $match = Hello; $repeat = 2; $string =~ m/$match{$repeat}/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex curly bracket ambiguity
by ysth (Canon) on Jun 21, 2007 at 16:03 UTC | |
by Anonymous Monk on Jun 21, 2007 at 18:08 UTC | |
by Roy Johnson (Monsignor) on Jun 21, 2007 at 18:11 UTC | |
by ysth (Canon) on Jun 21, 2007 at 18:23 UTC | |
|
Re: Regex curly bracket ambiguity
by halley (Prior) on Jun 21, 2007 at 15:05 UTC | |
|
Re: Regex curly bracket ambiguity
by naikonta (Curate) on Jun 21, 2007 at 18:36 UTC |