This queue is for tickets about the IO-Prompt CPAN distribution.

Report information
The Basics
Id:
54072
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
pjs [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
v0.99.4
Fixed in:
(no value)



Subject: Not warnings safe with normal usage
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 907
It seems to me that this test should not throw warnings: $ perl -MIO::Prompt -we '$p = prompt(-p=>"Password: " -e => "*" ); print $p' Use of uninitialized value $_ in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.0/IO/Prompt.pm line 92. Use of uninitialized value $_ in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.0/IO/Prompt.pm line 92. Also, the line number reported is weird: $ cat -n /usr/local/lib/perl5/site_perl/5.10.0/IO/Prompt.pm | head -100 | tail -10 91 local *_ = \($data[$i]); 92 if (ref eq 'HASH') { 93 splice @data, $i + 1, 0, %$_; 94 } 95 elsif (ref eq 'GLOB' or UNIVERSAL::isa($_, 'IO::Handle')) { 96 croak "Can't write prompt to read-only $_" unless -w; 97 $OUT = $_; 98 } 99 elsif (/^-/) { # a flag 100 s/_//g;
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,SPF_PASS
In-Reply-To: <rt-3.8.HEAD-18078-1264705840-1690.54072-4-0@rt.cpan.org>
References: <RT-Ticket-54072@rt.cpan.org> <rt-3.8.HEAD-18078-1264705840-1690.54072-4-0@rt.cpan.org>
Message-ID: <832f158a1001281141od33a466g7a873eccc22f2256@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 012B94D8109 for <bug-IO-Prompt@rt.cpan.org>; Thu, 28 Jan 2010 14:42:09 -0500 (EST)
Received: (qmail 1887 invoked by uid 103); 28 Jan 2010 19:42:09 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 28 Jan 2010 19:42:09 -0000
Received: from mail-vw0-f50.google.com (HELO mail-vw0-f50.google.com) (209.85.212.50) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Thu, 28 Jan 2010 11:42:04 -0800
Received: by vws4 with SMTP id 4so269795vws.9 for <bug-IO-Prompt@rt.cpan.org>; Thu, 28 Jan 2010 11:41:53 -0800 (PST)
Received: by 10.220.89.194 with SMTP id f2mr4911857vcm.67.1264707713197; Thu, 28 Jan 2010 11:41:53 -0800 (PST)
Delivered-To: cpan-bug+IO-Prompt@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54072] Not warnings safe with normal usage
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=aTz8/j2Ah5q/PaDWr4YuYixzzmQcfycaLO1OkJvGuZmEINWW6P4Q2gVopf/X4aqhpH sb2vgG00LD5kiOVqOPe/+MW1yV2vP5K7V150SBa0bKtjdhoyNGtaM9ABU9+BEtOKdR3C EMrndwKhbk+cSWgJL5v1tm9y3o5vxojhX3Cac=
Return-Path: <thoughtstream@gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type; bh=Z+qbVsPwtUjr9ed2hK013Y/X+LxP+9DNp9P7GlAiAtk=; b=kkmYdfkxTUGalUGicIXaQ2RrVvel/NFz4+FJHIcXgff/RlZoiPlSUc16eoUVKnKata JlkDJPMIl/e5CJbdz7hfLfkbXgFcESuzDQrY70O2SoPKCv2SLbKImLWMXt3M/y5j4cF3 GQpa5pDrWANljtG3JNN5cwArYS1k9YKxKmbUI=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-IO-Prompt@rt.cpan.org
X-Google-Sender-Auth: f34287484e938eba
Date: Fri, 29 Jan 2010 06:41:33 +1100
Sender: thoughtstream@gmail.com
X-Spam-Level: *
To: bug-IO-Prompt@rt.cpan.org
From: Damian Conway <damian@conway.org>
RT-Message-ID: <rt-3.8.HEAD-18075-1264707742-1269.54072-0-0@rt.cpan.org>
Content-Length: 190
Hi Peter,
Show quoted text
> Broken in: v0.99.4 > It seems to me that this test should not throw warnings:
I believe this was fixed in the 0.996 release. Please let me know if you find otherwise. Damian
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=
In-Reply-To: <rt-3.8.HEAD-18075-1264707742-1405.54072-6-0@rt.cpan.org>
References: <RT-Ticket-54072@rt.cpan.org> <rt-3.8.HEAD-18078-1264705840-1690.54072-4-0@rt.cpan.org> <832f158a1001281141od33a466g7a873eccc22f2256@mail.gmail.com> <rt-3.8.HEAD-18075-1264707742-1405.54072-6-0@rt.cpan.org>
Message-ID: <p06230902c78886e37f8e@[192.168.1.6]>
Content-Type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 4BE654D8025 for <bug-IO-Prompt@rt.cpan.org>; Fri, 29 Jan 2010 08:06:21 -0500 (EST)
Received: (qmail 28277 invoked by uid 103); 29 Jan 2010 12:39:40 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 29 Jan 2010 12:39:40 -0000
Received: from mail-pw0-f54.google.com (HELO mail-pw0-f54.google.com) (209.85.160.54) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 29 Jan 2010 04:39:04 -0800
Received: by pwi14 with SMTP id 14so1431221pwi.13 for <bug-IO-Prompt@rt.cpan.org>; Fri, 29 Jan 2010 04:38:53 -0800 (PST)
Received: by 10.114.164.27 with SMTP id m27mr359115wae.49.1264768733399; Fri, 29 Jan 2010 04:38:53 -0800 (PST)
Received: from ?192.168.1.6? (S0106001ee57a66b1.gv.shawcable.net [24.108.69.240]) by mx.google.com with ESMTPS id 23sm1573227pzk.12.2010.01.29.04.38.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Jan 2010 04:38:51 -0800 (PST)
Delivered-To: cpan-bug+IO-Prompt@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54072] Not warnings safe with normal usage
Return-Path: <peter@psdt.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-IO-Prompt@rt.cpan.org
Date: Fri, 29 Jan 2010 04:38:49 -0800
X-Spam-Level: *
To: bug-IO-Prompt@rt.cpan.org
From: Peter Scott <peter@psdt.com>
RT-Message-ID: <rt-3.8.HEAD-18223-1264770418-173.54072-0-0@rt.cpan.org>
Content-Length: 686
Hi Damian,
Show quoted text
><URL: https://rt.cpan.org/Ticket/Display.html?id=54072 > > >Hi Peter, >
>> Broken in: v0.99.4 >> It seems to me that this test should not throw warnings:
> >I believe this was fixed in the 0.996 release. >Please let me know if you find otherwise.
Otherwise... [peter@tweety ~]$ pmver IO::Prompt 0.996 [peter@tweety ~]$ perl -MIO::Prompt -we '$p = prompt(-p=>"Password: ", -e => "*"); print $p' Use of uninitialized value $_ in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.0/IO/Prompt.pm line 92. Use of uninitialized value $_ in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.0/IO/Prompt.pm line 92. Password: ***** fnord[peter@tweety ~]$
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,SPF_PASS
In-Reply-To: <rt-3.8.HEAD-18223-1264770418-1142.54072-5-0@rt.cpan.org>
References: <RT-Ticket-54072@rt.cpan.org> <rt-3.8.HEAD-18078-1264705840-1690.54072-4-0@rt.cpan.org> <832f158a1001281141od33a466g7a873eccc22f2256@mail.gmail.com> <rt-3.8.HEAD-18075-1264707742-1405.54072-6-0@rt.cpan.org> <p06230902c78886e37f8e@192.168.1.6> <rt-3.8.HEAD-18223-1264770418-1142.54072-5-0@rt.cpan.org>
Message-ID: <832f158a1001291220k41d3ae1eta00045c69f8e0a9e@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 3F20B4D8014 for <bug-IO-Prompt@rt.cpan.org>; Fri, 29 Jan 2010 15:21:27 -0500 (EST)
Received: (qmail 13888 invoked by uid 103); 29 Jan 2010 20:21:26 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 29 Jan 2010 20:21:26 -0000
Received: from mail-qy0-f186.google.com (HELO mail-qy0-f186.google.com) (209.85.221.186) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 29 Jan 2010 12:21:21 -0800
Received: by qyk16 with SMTP id 16so1574029qyk.13 for <bug-IO-Prompt@rt.cpan.org>; Fri, 29 Jan 2010 12:21:10 -0800 (PST)
Received: by 10.224.44.233 with SMTP id b41mr585906qaf.278.1264796470268; Fri, 29 Jan 2010 12:21:10 -0800 (PST)
Delivered-To: cpan-bug+IO-Prompt@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #54072] Not warnings safe with normal usage
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=ZJ2boKshHl6LXHUjVxB9zzi6o/xBmGRlg6AkAoecv7/UCqjozmBFkyX0xP/lYk9RCi qUB250p6fqoc+CAWrSiKgv6vWf7u6lqP0mj9TwgqBGvpFIlJ7g3v5YFACm2L8h1f+cxY UTy9LR5RH/Xm1JovySiSDQzFR7SU/87ENxW28=
Return-Path: <thoughtstream@gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type; bh=mvbVGy1LHMPCW2JD1zMdnrkgq2CBN/ZxcpC/gQ0XMCY=; b=qBBkh9k6w5FfQIe2N2hZqEe7dzp0mTqW8XTnAMJ2uDr5UCvOj9mGoMdNYv/mQ0OIve 5QGb0pL18fQRb2zktvY9xb/OFQfdGodBN6xvrfz+G6S7VOH+iDxNaSIOCRfaWNRWHm23 U5qXuhGax5Z9uGjrWbdABCWb/o5pw/QWXzSU8=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-IO-Prompt@rt.cpan.org
X-Google-Sender-Auth: cd024fc5bc89d18b
Date: Sat, 30 Jan 2010 07:20:50 +1100
Sender: thoughtstream@gmail.com
X-Spam-Level: *
To: bug-IO-Prompt@rt.cpan.org
From: Damian Conway <damian@conway.org>
RT-Message-ID: <rt-3.8.HEAD-18077-1264796517-732.54072-0-0@rt.cpan.org>
Content-Length: 279
Show quoted text
>>I believe this was fixed in the 0.996 release. >>Please let me know if you find otherwise.
> > Otherwise...
Thanks, Peter. I just uploaded 0.997 which appears to fix this bug. (BTW, the total fix was exactly one character difference!) Let me know how it goes for you. Damian


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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