Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to get an exact match of files

by merlyn (Sage)
on Mar 24, 2011 at 05:18 UTC ( #895182=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://895182]
help
Chatterbox?
[Corion]: Sane Dots Supplies - your brand manufacturer for satisfying experiences!
[choroba]: preparing the trip to Vietnam + buying a new car = enough fun
[Corion]: choroba: Yeah, that's a lot of "fun" for one week...
[Corion]: I guess I should stage some product photos for Sane Dots Supplies ;)
[marto]: I had some ideas about that Corion
[marto]: I'll send a message over the weekend maybe :P
[Corion]: choroba: I avoided the "fun" of emergency shopping for a new flat iron by trying the flat iron without the timer that sat between it and the mains power. Seems as if just the timer is broken.
[Corion]: marto: Heh, would be cool!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-01-20 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.