jaa has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
I am looking for a perltidy option that does this:
instead of this...return $ship->chargeWeapons( "phaser-canon" ) if $encounter->description eq 'klingon' and $ship->firepower >= $encounter->firepower and $location->status ne 'neutral';
Note that I want the wrapped ANDs to be indented, rather than at the same indentation level as the IF.return $ship->chargeWeapons( "phaser-canon" ) if $encounter->description eq 'klingon' and $ship->firepower >= $encounter->firepower and $location->status ne 'neutral';
A thousand apologies if this is obvious - I have googled and manned to no avail.
Regards, & thanks
Jeff
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perltidy IF continuation indentation
by jaa (Friar) on Oct 06, 2005 at 14:49 UTC | |
Re: perltidy IF continuation indentation
by blazar (Canon) on Oct 04, 2005 at 08:45 UTC | |
Re: perltidy IF continuation indentation
by sauoq (Abbot) on Oct 04, 2005 at 14:05 UTC | |
by jaa (Friar) on Oct 04, 2005 at 15:26 UTC | |
by sauoq (Abbot) on Oct 04, 2005 at 15:40 UTC | |
by jaa (Friar) on Oct 05, 2005 at 13:16 UTC | |
by sauoq (Abbot) on Oct 05, 2005 at 18:57 UTC | |
|
Back to
Seekers of Perl Wisdom