Skip Menu |
 

This queue is for tickets about the Search-Dict CPAN distribution.

Report information
The Basics
Id: 124033
Status: rejected
Priority: 0/
Queue: Search-Dict

People
Owner: Nobody in particular
Requestors: user42_kevin [...] yahoo.com.au
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Ymail-Osg: XaX6084VM1la53bJ7WewDMnIBY1s4hNNvngKLQ_SX.qOgs_F0BgZUVAGdZNn_53 xrrpavQ9fVWG0Gt_HE2KFmnKswIyse78Um9sWYxbNz6aQ.aZKd73IHi5YDVc41SFKXuw7blMQdkf dtGW7RkD_8MNfyKiO_vyuOWsxqI7xtEaio8Xh.vca1qTSl4FltHLacPxaPJnw.AW_s.bvscyAzDc MG9MbSWAqebQcgmfEBZ2viU9gisHw9sf5Ilso7FPXXmiV_yLFyCvD4Ta5foYR9V_T4mTHtzQn8Xz lJo3dDfEFLNGSamR7Irs449Xe82g9kMQdsnse3tXPNaOdwwVChDYT2hm5oDDP28rJwnqzE7m2_0j dyCQQr7Lmc0ujogvKISQp8huDfT9nxtJEwNs2uzu_GDPdPN5CIrg48WtL1GZ9VG0_eY8y0NG9qvo RBeC.0.2RXJQg0X62OFNaGHd6MOgjX_z8uJLD9MfwfOaycyTOmyyq2QCc87XQ8Zp5MRBZjrbF8.Q uzCt7dcu3zw--
X-Spam-Status: No, score=-1.22 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_NEUTRAL=0.779] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <878td8n8lm.fsf [...] blah.blah>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.22
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7BBD32401C1 for <cpan-bug+Search-Dict [...] hipster.bestpractical.com>; Mon, 8 Jan 2018 01:56:05 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IImOymysVAiP for <cpan-bug+Search-Dict [...] hipster.bestpractical.com>; Mon, 8 Jan 2018 01:55:46 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 3F3402400E0 for <bug-Search-Dict [...] rt.cpan.org>; Mon, 8 Jan 2018 01:55:45 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 284E711F487 for <bug-Search-Dict [...] rt.cpan.org>; Sun, 7 Jan 2018 22:55:44 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 5039411F4A7 for <bug-Search-Dict [...] rt.cpan.org>; Sun, 7 Jan 2018 22:55:42 -0800 (PST)
Received: from sonic303-20.consmr.mail.ne1.yahoo.com (sonic303-20.consmr.mail.ne1.yahoo.com [66.163.188.146]) by xx1.develooper.com (Postfix) with ESMTP id 8800611F49B for <bug-Search-Dict [...] rt.cpan.org>; Sun, 7 Jan 2018 22:55:40 -0800 (PST)
Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Mon, 8 Jan 2018 06:55:39 +0000
Received: from smtp230.mail.ne1.yahoo.com (EHLO blah.blah) ([10.218.253.211]) by smtp413.mail.ne1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 824a37d01b09a09fa113b50980e82802 for <bug-Search-Dict [...] rt.cpan.org>; Mon, 08 Jan 2018 06:55:36 +0000 (UTC)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] yahoo.com.au
Delivered-To: cpan-bug+Search-Dict [...] hipster.bestpractical.com
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Subject: suggest way to skip some lines
Return-Path: <user42_kevin [...] yahoo.com.au>
X-RT-Mail-Extension: search-dict
X-Original-To: cpan-bug+Search-Dict [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1515394539; bh=XZexhTPa0fO5lnvAAFv16tAlrigAi3Semy/nRBfcyEM=; h=From:To:Subject:Date:From:Subject; b=HtboqYBFOyHwc1Ca8IiYQVoJKB70g7E/+jCOPdbfalOkyTZQYK+y0S8bnlwZ8jv0XkttwzwJtCp3wv3DKdzjLuzWhM9g3p89R49hxkrWUM1unj6vtUwECdBHO0U7LfRTc+PTOosz/6kdHhFfFLtmDJkv5GQnfSzEVKeqvQs4CRtNDDeiJYXA9nxeVMudlnjwTnoqza+f/x9vJUjv8z5EzkEHm4MWUgt4epa1ESdkS3WdAPzp0vexNDj+072wVmGjy8al76qGYWJXfAv7if1XR4/N/dPU9dKjnxhOqkvI56WZGBBJEpZk8Q55HekzKe4bM4OKSXceNL+rTW2hXuk+OQ==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_800_899 0, DKIM_SIGNATURE 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __C230066_P5 0, __CT 0, __CT_TEXT_PLAIN 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_YAHOO 0, __HAS_FROM 0, __HAS_MSGID 0, __HELO_YAHOO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_STRUCTURE_2 0, __RDNS_YAHOO 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_START 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __USER_AGENT 0, __zen.spamhaus.org_ERROR '
Date: Mon, 08 Jan 2018 17:54:45 +1100
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.1.6.10916
To: bug-Search-Dict [...] rt.cpan.org
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 868
Download (untitled) / with headers
text/plain 868b
As an idea for a feature, it could be good if Search::Dict had a way to ignore some unwanted lines when it searches. I thought to use it on some OEIS "B-files" which have lines like # some comment 1 838 2 4378 3 547894 4 8429138492 where want to ignore "#" comments (and perhaps blank lines at end of file, though that should be abnormal). I used an "xfrm" to get the first number as key, and thought perhaps return undef from it could mean an unwanted line. I'd have in mind look() simply reading (and xfrm-ing etc) next line until a wanted one. A predicate func or a regexp of wanted or unwanted could also suit. Even a readline func parameter which could do various strange reading. A tied handle could have a special readline I imagine, but a func parameter may be easier than a class .. and can have more than one way to do it eh ... :)
MIME-Version: 1.0
In-Reply-To: <878td8n8lm.fsf [...] blah.blah>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <878td8n8lm.fsf [...] blah.blah>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-12987-1515599936-1747.124033-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 238
Download (untitled) / with headers
text/plain 238b
Given the various ways to do what you describe, I don't plan to add new features to Search::Dict. For example, for skipping leading lines you can use or adapt something like https://metacpan.org/release/Tie-Handle-Offset Regards, David


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.