in reply to Re^4: No matching
in thread No matching

You're double encoding, you use one or the other, not both.
#!/usr/bin/perl -- use strict; use warnings; my $base = 'system.sysDescr.0 : DISPLAY STRING- (ascii): '; my $one = quotemeta $base; my $two = "\Q$base\E"; print "$_\n" for $base, $one, $two, "\Q$one\E", "\Q$two\E"; __END__ system.sysDescr.0 : DISPLAY STRING- (ascii): system\.sysDescr\.0\ \:\ DISPLAY\ STRING\-\ \(ascii\)\:\ \ system\.sysDescr\.0\ \:\ DISPLAY\ STRING\-\ \(ascii\)\:\ \ system\\\.sysDescr\\\.0\\\ \\\:\\\ DISPLAY\\\ STRING\\\-\\\ \\\(ascii\ +\\)\\\:\\\ \\\ system\\\.sysDescr\\\.0\\\ \\\:\\\ DISPLAY\\\ STRING\\\-\\\ \\\(ascii\ +\\)\\\:\\\ \\\

Replies are listed 'Best First'.
Re^6: No matching
by o_chfa (Acolyte) on Sep 03, 2009 at 11:35 UTC

    GOTCHA: quotemeta '...' ist the same as \Q...\E. Thx

      GOTCHA: quotemeta '...' ist the same as \Q...\E.

      That's why I said "Alternatively, do ..." ;-)