http://www.perlmonks.org?node_id=895182


in reply to How to get an exact match of files

I think you're looking for "eq", as in $date eq $file.

However, if you insist using a regex, please reveal the actual context, as it is probably not freeform Perl code then.

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Replies are listed 'Best First'.
Re^2: How to get an exact match of files
by Anonymous Monk on Mar 24, 2011 at 05:27 UTC

    $data="Adi";

    $file="$(ROOT)/../../../../../../../Audio_Driver/adie_lib/$(CPU)/adi"

    For the above data if I use $data eq $file,will they be equal?is it not case-sensitive?how to make the eq case-insensitive?