Re: Forward slash in regex pattern

2001-09-13 Thread Mark Murphy
Alan - Your problem are the "$" in $path and $url. You need to escape them somehow or just remove them out of your test script if you don't need them. Also if ($url !~ /$path/){ $url = $path.$url; } worked fine for me, no need for the m,^, or !. Mark Alan Hulley wrote: > > Hell

Forward slash in regex pattern

2001-09-12 Thread Alan Hulley
Hello. I'm new to Perl and CGI and seem to have dropped in the deep end with this particular problem! The basic requirement is: if a string doesn't begin with a sequence of characters then prepend that sequence to the string. Seems simple enough, but this is complicated (it would seem from