Hi there,

On Mon, 23 Apr 2001, Al Morgan wrote:

> <Location ~ "^/$">
>         SetHandler "perl-script"
>         PerlHandler Slash::Host::slashcode::rootHandler
> </Location>
> 
> question is:  What does the ~ "^/$" mean?

It's a match expression.  It means match (the tilde character means
match) a line containing a string starting (the caret character means
the start of the line) with a slash character and ending (the dollar
character means the end of the line) right there.

Read up on the ways of specifying classes of strings.  They are often
called "regular expressions".  There are lots of good books on the
subject.  Beware of the differences between Perl regular expressions
and those used by other software, such as many Apache modules and
Apache itself.

73,
Ged.




Reply via email to