Perl regular expressions look very much like those in vi.
^
Match the beginning of a line
Also, \n, \r, \f, \t and \NNN have their usual C-style interpretations.
The actual syntax for the pattern matching command is m/pattern/gio. The modifiers are g for ``global'' match, i for ``ignore case'', and o for ``only compile this regexp once''. With the m command, you can use any pair of non-alphanumeric characters to bound the expression. This especially useful when matching filenames that contain the ``/'' character. For example:
if (m!^/tmp_mnt!) { print "$_ is an automounted file system\n"; }
If the delimiter you choose is ``/'', then the leading m is optional.
Perl even has the ability to do multi-line pattern matching. Refer to the documentation on the $* variable for complete information.