yacoubean has asked for the wisdom of the Perl Monks concerning the following question:
I was able to fix it by removing the .cfm in the above code, like so:while ($_ =~ /(<cf_)(.*?)[>\s]/gi) { # finding custom tags $uniques{"$2.cfm"}++; $uniques{$2} = "<cust>"; }
Then later I append the '.cfm'. Any ideas as to why this was happening to me?while ($_ =~ /(<cf_)(.*?)[>\s]/gi) { # finding custom tags $uniques{"$2"}++; $uniques{$2} = "<cust>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Two hash keys created when '.' is in the string
by Mutant (Priest) on Nov 24, 2004 at 18:04 UTC | |
by yacoubean (Scribe) on Nov 24, 2004 at 18:16 UTC | |
by Eimi Metamorphoumai (Deacon) on Nov 24, 2004 at 18:31 UTC | |
by ysth (Canon) on Nov 24, 2004 at 23:36 UTC | |
by eric256 (Parson) on Nov 24, 2004 at 18:48 UTC | |
by ikegami (Patriarch) on Nov 24, 2004 at 19:04 UTC | |
by Eimi Metamorphoumai (Deacon) on Nov 24, 2004 at 18:55 UTC | |
|