Search notes:

Perl function: quotemeta

use warnings;
use strict;

my $string = "foo*(bar)[baz]! 42 #\n.";

print quotemeta($string), "\n";
# foo\*\(bar\)\[baz\]\!\ 42\ \#\
# \.
Github repository about-perl, path: /functions/quotemeta.pl

See also

Perl functions

Index