in reply to Re^3: Two hash keys created when '.' is in the string
in thread Two hash keys created when '.' is in the string
"And finally, running any regexp match overwrites the values of all the number variables (for instance, $2), so after checking $2 =~ /css/i, $2 will be undef."
Not true. Perl doesn't garuntee that it will overright those unless they actualy match. Since that regex isn't doing any captures he should be safe, not that I think its the best way to do it, but its safe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Two hash keys created when '.' is in the string
by ikegami (Patriarch) on Nov 24, 2004 at 19:04 UTC | |
|
Re^5: Two hash keys created when '.' is in the string
by Eimi Metamorphoumai (Deacon) on Nov 24, 2004 at 18:55 UTC | |
by eric256 (Parson) on Nov 24, 2004 at 19:07 UTC |