Skip Menu |

This queue is for tickets about the File-Data CPAN distribution.

Report information
The Basics
Id: 106408
Status: resolved
Priority: 0/
Queue: File-Data

People
Owner: richard.foley [...] rfi.net
Requestors: hugo [...] domibay.es
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: File::Data - method "search" - documentation
Date: Thu, 13 Aug 2015 10:40:12 +0100
To: Bugs in File-Data via RT <bug-File-Data [...] rt.cpan.org>
From: Domibay - Hugo <hugo [...] domibay.es>
Hello, After experiencing heavy problems to perfom a search on a log file with regular expressions I noticed that the documentation does not give correct indications to use this module: it reads: " my @addrs = $o_dat->SEARCH('/^(.*\@.*)$/'); " while the example of deploy should be: " my @addrs = $o_dat->SEARCH('^(.*\@.*)$'); " the search has to be done avoiding the usual "/" characters according to the source code: " push(@ret, ($line =~ /$search/)); " It is also to mention that the search is always case-sensitive. to enable case-insensitive search the code would have to be changed from: "/$search/" to "/$search/i" In some cases you want case-insensitiveness but in other cases you dont need it and could save additional processing costs. Regards, Hugo
Fixed in v1.20