pukku has asked for the wisdom of the Perl Monks concerning the following question:
Hi!
I have a question about a particular issue with Perl::Tidy.
If I have the following code:
my $res = SOAP::Lite->autotype(0)->uri('http:...')->proxy('http:...')- +>function_call();
I would like the result to be:
my $res = SOAP::Lite ->autotype(0) ->uri('http:....') ->proxy('http:...') ->function_call();
Instead, I get:
my $res = SOAP::Lite->autotype(0)->uri('http:...') ->proxy('http:...') ->function_call();
The breaks have to do with line length, obviously, but my question is how do I tell Perl::Tidy that it should put the object on the same line as the assignment -- that is, if it's going to break lines with chained ->, it should do so for all of them?
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl::Tidy formatting question
by jmcnamara (Monsignor) on Oct 26, 2011 at 17:41 UTC | |
by pukku (Novice) on Oct 26, 2011 at 17:57 UTC | |
Re: Perl::Tidy formatting question
by Anonymous Monk on Oct 26, 2011 at 17:26 UTC | |
by Anonymous Monk on Oct 26, 2011 at 21:53 UTC | |
Re: Perl::Tidy formatting question
by vendion (Scribe) on Nov 22, 2011 at 16:13 UTC | |
by toolic (Bishop) on Nov 22, 2011 at 16:58 UTC | |
by vendion (Scribe) on Nov 23, 2011 at 15:09 UTC | |
by toolic (Bishop) on Nov 23, 2011 at 16:04 UTC |
Back to
Seekers of Perl Wisdom