Skip Menu |

This queue is for tickets about the JSON-JOM CPAN distribution.

Report information
The Basics
Id: 77773
Status: rejected
Priority: 0/
Queue: JSON-JOM

People
Owner: perl [...] toby.ink
Requestors: chris.is.fun [...] gmail.com
Cc:
AdminCc:

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



Subject: line 35
Hi, I am getting this error message. Use of uninitialized value in pattern match (m//) at /usr/local/share/perl/5.14.2/JSON/JOM.pm line 35 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl will try to tell you the name of the variable (if any) that was undefined. In some cases it cannot do this, so it also tells you what operation you used the undefined value in. Note, however, that perl optimizes your program and the operation displayed in the warning may not necessarily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. Not sure what else I should tell you, so just ask for whatever other info you need and I'll provide it. Cheers,
Are you running with global warnings enabled (perl -w)? I'd suggest not doing that and just enabling warnings on a per-file basis with "use warnings". That said, I'll try to eliminate this warning from the next release. But I'm not sure when that will be.
Subject: Re: [rt.cpan.org #77773] line 35
Date: Tue, 12 Jun 2012 10:51:50 -0400
To: Toby Inkster via RT <bug-JSON-JOM [...] rt.cpan.org>
From: Chris Waggoner <chris.is.fun [...] gmail.com>
Thanks Toby. I run with use warnings; use strict; because that's what all the perl tutorial books say to do. If you give me a rough idea of what needs to be done where to fix it, I can try to make the change myself and send you a patch. On Tue, Jun 12, 2012 at 08:49:50AM -0400, Toby Inkster via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=77773 > > > Are you running with global warnings enabled (perl -w)? I'd suggest not > doing that and just enabling warnings on a per-file basis with "use > warnings". > > That said, I'll try to eliminate this warning from the next release. But > I'm not sure when that will be.
JSON-JOM is no longer maintained.