perlquestion
pukku
<p>Hi!</p>
<p>I have a question about a particular issue with Perl::Tidy.<p>
<p>If I have the following code:</p>
<code>
my $res = SOAP::Lite->autotype(0)->uri('http:...')->proxy('http:...')->function_call();
</code>
<p>I would like the result to be:</p>
<code>
my $res = SOAP::Lite
->autotype(0)
->uri('http:....')
->proxy('http:...')
->function_call();
</code>
<p>Instead, I get:</p>
<code>
my $res =
SOAP::Lite->autotype(0)->uri('http:...')
->proxy('http:...')
->function_call();
</code>
<p>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?</p>
<p>Thanks.</p>