the ^ means start of line

from perldoc perlre

\Q quote (disable) pattern metacharacters till \E

...

You cannot include a literal `$' or `@' within a `\Q' sequence. An
unescaped `$' or `@' interpolates the corresponding variable, while
escaping will cause the literal string `\$' to be matched. You'll need
to write something like `m/\Quser\E\@\Qhost/'.


-- 
Simon Oliver

Reply via email to