Copyright © tutorialspoint.com

# PERL quotemeta Function

## Syntax

quotemeta EXPR

## Definition and Usage

Escapes all meta-characters in EXPR. For example, quotemeta("AB*..C") returns "'AB\*\.\.C".

## Return Value

- A string with all meta-characters escaped.

## Example

Try out following example:

    #!/usr/bin/perl -w

    print quotemeta("AB*\n[.]*");

It will produce following results:

    AB\*\
    \[\.\]\*

Copyright © tutorialspoint.com