in reply to Can I use Q and E to regex match the dollar sign?
like('asdf$', quotemeta('asdf$'));
If you absolutely need to compile the regexp before calling like (doubtful), here are some possible calling syntaxes:
$re = quotemeta('asdf$'); like('asdf$', qr/$re/); -or- like('asdf$', qr/@{[ quotemeta('asdf$') ]}/); -or- like('asdf$', map { qr/$_/ } map quotemeta, 'asdf$');
|
|---|