Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Wednesday December 14, 2005
06:02 PM

Perltidy problem

[ #27987 ]

If I have code like this:


my %hash = (
    some_long_key => {
        INCLUDE_PATH => __PACKAGE__->path_to('www/templates/tt')

I'd love it if perltidy stopped turning it into this:


my %hash = ( some_long_key =>
      { INCLUDE_PATH => __PACKAGE__->path_to('www/templates/tt') } );

I can tell perltidy to keep my whitespace, but I'd like to have it be smart about about formatting this in the first place. I've tried various switch combinations but can't quite seem to get this to work. Suggestions?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.