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
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
Subject: Re: [rt.cpan.org #113803] Auto quote hash keys
Date: Fri, 15 Apr 2016 08:32:59 -0700
To: "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org>
From: Steven Hancock <perltidy [...] users.sourceforge.net>
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 >


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.