The line:
$siteinfo[1] =~ /^[^.]+/(\w+\.\w+)$/ or ...
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 reply to re: why extra slash in regex? (was "Warning our Fellow Monks")
by t'mo
in thread Warning our Fellow Monks
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |