The latter. See use for examples and the FAQ What's the difference between require and use? for more detail.
Addendum: Also, almost every module (including Regexp::Common) has a SYNOPSIS section in its documentation which includes a code snippet showing how to use it.
Perl and (almost) all of its modules have excellent documentation. It will pay you dividends to learn where that documentation is, how to search it and how to understand what you find there.
In reply to Re^7: Easiest way to filter a file based on user input (updated)
by hippo
in thread Easiest way to filter a file based on user input
by Peter Keystrokes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |