No such thing as a small change | |
PerlMonks |
re: why extra slash in regex? (was "Warning our Fellow Monks")by t'mo (Pilgrim) |
on Mar 16, 2001 at 23:07 UTC ( [id://64978]=note: print w/replies, xml ) | Need Help?? |
The line:
in Ovid's example has me confused. The extra slash (/) in the middle is throwing me off. At first glance, it looks like he meant to use the s/// operator. At second glance, it becomes apparent that it's meant as a directory separator (to exclude things like "../../". However, doesn't placing a '/' in a regexp delimited by '/' characters require an escape character (\)? (I must be getting a mild case of LTS)
In Section
Perl Monks Discussion
|
|