Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 113803
Status: open
Priority: 0/
Queue: Perl-Tidy

Owner: Nobody in particular
Requestors: ESAYM [...]

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

Subject: Auto quote hash keys
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-24820-1460694794-125.0-0-0 [...]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 239
Download (untitled) / with headers
text/plain 239b
Would be super awesome if there was an option to auto quote hash keys. Ex. turn $myhash{somekey} into: $myhash{'somekey'}. Some like quoted keys.. and some don't. Would be nice if I didn't have to worry about it :) Regards, Samuel Smith
MIME-Version: 1.0
X-Spam-Status: No, score=-6.384 tagged_above=-99.9 required=10 tests=[AWL=0.214, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FROM_OUR_RT=-4, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
In-Reply-To: <rt-4.0.18-24820-1460694795-910.113803-4-0 [...]>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-113803 [...]> <rt-4.0.18-24820-1460694795-910.113803-4-0 [...]>
X-Virus-Scanned: Debian amavisd-new at
X-Received: by with SMTP id kc2mr6358877oeb.29.1460734379490; Fri, 15 Apr 2016 08:32:59 -0700 (PDT)
Message-ID: <CAK7Dq6Vuak1wHKMsEU-9_G4-HQcMO0iqm0_B5Q5wExOokyZZjw [...]>
Content-Type: multipart/alternative; boundary="047d7b41889fcd0536053087b94b"
X-Spam-Score: -6.384
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Received: from localhost (localhost []) by (Postfix) with ESMTP id 4BBF024034D for <cpan-bug+Perl-Tidy [...]>; Fri, 15 Apr 2016 11:33:12 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id tANjPLp9pWFe for <cpan-bug+Perl-Tidy [...]>; Fri, 15 Apr 2016 11:33:10 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id 7BEEB240061 for <bug-Perl-Tidy [...]>; Fri, 15 Apr 2016 11:33:10 -0400 (EDT)
Received: (qmail 14913 invoked by alias); 15 Apr 2016 15:33:09 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Fri, 15 Apr 2016 08:33:03 -0700
Received: by with SMTP id bg3so66170159obb.1 for <bug-Perl-Tidy [...]>; Fri, 15 Apr 2016 08:33:03 -0700 (PDT)
Received: by with HTTP; Fri, 15 Apr 2016 08:32:59 -0700 (PDT)
Delivered-To: cpan-bug+Perl-Tidy [...]
Subject: Re: [ #113803] Auto quote hash keys
Return-Path: <s7078hancock [...]>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=OXnRtl3DBX3+7jg9kiy+MD0fOzCvrEW8wjRyzu43yto=; b=hs8owfTQtiTXE/D7UKqxYZsylMs0LP716bDjAT88ohic2u44ZhbXz6Oxr6TJwUa12+ 9JUHX+s741eQWg35vcGvQacEvy/31qf7WJGtKtJ5Bb3SFegZH6FfczT2xnQJ/LqhJnXy tINZk4WAHgWo+gjKE8dkhxDPnCX9NerygqJZR2XxhU9UhDEqle1RBO7/L5ZExsC/EmJB P3MCwXkGPN3CFFEeS7GbRe14mXWJWqDv+h4xaG+e/O8r0+uVTMaUeuTVCeVHBEZe3vnX fkHz5W3vZoMn7gFQSUOWrUnOAHjQWbZ5IN7X2U/KTIvJf6E/aCsQDuLQRWNfogP1EQw8 itRQ==
X-Original-To: cpan-bug+Perl-Tidy [...]
X-RT-Mail-Extension: perl-tidy
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=OXnRtl3DBX3+7jg9kiy+MD0fOzCvrEW8wjRyzu43yto=; b=HFA8Gmr9ijHPalJ0qJB271xvsjnFtDtu6pZrup5VJYDRV3yMkpvFctkiAGk9KKprRk e/vfk1/SfPtltHiznwDiLk097FyryLtUz8RWkef7Tj1cfhPBCMIg4c3dG3G1+Lx/578x Ra6Z0esEXPixnmpU4HYNUDAYV23B/RnZmLBJIEQ5axfrAnJTblv5Hjawnuok4Jsvn+Zy U3iC8YhvrOvT7a71Tewy0ppWqWL+n5gmTbnFnkeGtE6inNM8CfCxM6EWM9aFLqocFKix xA+umABLS2RnsiRWTIe7NbzIeqN+l6CO22IwB3GgE13T57XZIyYU19/LGKF00a3yrlsy j8iQ==
X-Google-Sender-Auth: Cptk8rVpWoOSC-JF8OOMKQDRnAc
Sender: s7078hancock [...]
Date: Fri, 15 Apr 2016 08:32:59 -0700
To: "bug-Perl-Tidy [...]" <bug-Perl-Tidy [...]>
X-GM-Message-State: AOPr4FW3dvEXxv751luwRVVced8BO7fj6I68RXAWTMKlhaOZ+dDLik4Xvyv/lyhgqV4LstHweXtOB6OtIb2GYg==
From: Steven Hancock <perltidy [...]>
RT-Message-ID: <rt-4.0.18-4210-1460734393-1189.113803-0-0 [...]>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1077
Samuel, Thanks for the note, I'll look into it. It wouldn't be too difficult, but the main issue would be reliability because it is sometimes difficult to distinguish between code block braces and hash braces, and between a bare word and a word that has been defined to be a sub call without arguments. Also, it would be important to be able to reverse the process. Steve On Thu, Apr 14, 2016 at 9:33 PM, Samuel Smith via RT <> wrote: Show quoted text
> Fri Apr 15 00:33:15 2016: Request 113803 was acted upon. > Transaction: Ticket created by ESAYM > Queue: Perl-Tidy > Subject: Auto quote hash keys > Broken in: (no value) > Severity: Wishlist > Owner: Nobody > Requestors: > Status: new > Ticket <URL: > > > > Would be super awesome if there was an option to auto quote hash keys. Ex. > turn $myhash{somekey} into: $myhash{'somekey'}. > > Some like quoted keys.. and some don't. Would be nice if I didn't have to > worry about it :) > > Regards, > Samuel Smith >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1614

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

Please report any issues with to