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

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

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 [...] rt.cpan.org>
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 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-113803 [...] rt.cpan.org> <rt-4.0.18-24820-1460694795-910.113803-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.60.117.66 with SMTP id kc2mr6358877oeb.29.1460734379490; Fri, 15 Apr 2016 08:32:59 -0700 (PDT)
Message-ID: <CAK7Dq6Vuak1wHKMsEU-9_G4-HQcMO0iqm0_B5Q5wExOokyZZjw [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="047d7b41889fcd0536053087b94b"
X-Spam-Score: -6.384
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4BBF024034D for <cpan-bug+Perl-Tidy [...] hipster.bestpractical.com>; Fri, 15 Apr 2016 11:33:12 -0400 (EDT)
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 tANjPLp9pWFe for <cpan-bug+Perl-Tidy [...] hipster.bestpractical.com>; Fri, 15 Apr 2016 11:33:10 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 7BEEB240061 for <bug-Perl-Tidy [...] rt.cpan.org>; Fri, 15 Apr 2016 11:33:10 -0400 (EDT)
Received: (qmail 14913 invoked by alias); 15 Apr 2016 15:33:09 -0000
Received: from mail-ob0-f178.google.com (HELO mail-ob0-f178.google.com) (209.85.214.178) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 15 Apr 2016 08:33:03 -0700
Received: by mail-ob0-f178.google.com with SMTP id bg3so66170159obb.1 for <bug-Perl-Tidy [...] rt.cpan.org>; Fri, 15 Apr 2016 08:33:03 -0700 (PDT)
Received: by 10.60.116.196 with HTTP; Fri, 15 Apr 2016 08:32:59 -0700 (PDT)
Delivered-To: cpan-bug+Perl-Tidy [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #113803] Auto quote hash keys
Return-Path: <s7078hancock [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; 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-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Perl-Tidy [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-tidy
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; 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 [...] gmail.com
Date: Fri, 15 Apr 2016 08:32:59 -0700
X-Spam-Level:
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
X-GM-Message-State: AOPr4FW3dvEXxv751luwRVVced8BO7fj6I68RXAWTMKlhaOZ+dDLik4Xvyv/lyhgqV4LstHweXtOB6OtIb2GYg==
From: Steven Hancock <perltidy [...] users.sourceforge.net>
RT-Message-ID: <rt-4.0.18-4210-1460734393-1189.113803-0-0 [...] rt.cpan.org>
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 < bug-Perl-Tidy@rt.cpan.org> 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: ESAYM@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=113803 > > > > 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 Perl.org infrastructure.

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