Skip Menu |

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

Report information
The Basics
Id: 54219
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: reinpost [...] win.tue.nl
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 20090616
Fixed in: (no value)



Subject: -sbcp option cannot be specified in .perltidyrc
The value of the -sbcp option cannot be specified in a .perltidyrc file. This value must start with the # character. When I use the # character, perltidy complains about a missing value: # starts a comment. When I use \043 instead, perltidy complains that the value must start with #. A nice catch-\043 situation. Perhaps there is an easy way out of this. (I want all of my block comments to be treated as static, so I need this.)
From: reinpost [...] win.tue.nl
On Tue Feb 02 08:57:54 2010, rpost wrote: Show quoted text
> The value of the -sbcp option cannot be specified in a .perltidyrc file. > [...] > Perhaps there is an easy way out of this. (I want all of my block > comments to be treated as static, so I need this.)
There is in fact a very easy way out, as I discovered by reading the source code: quote the #, e.g. -sbcp='#' # works as desired So this is not a missing feature after all. My vote for clarifying this in the documentation.
This is resolved in perltidy 20120619.