alexbyk has asked for the wisdom of the Perl Monks concerning the following question:
Is there any option to keep the first line as is? Because with -pbp perltidy breaks it into 5 lines because of a signatures feature.$fs->traverse('/foo')->filter(sub ($name, $dir) { $name !~ /^\./; }); $fs->traverse('/foo')->filter(sub { $_[0] !~ /^\./; });
UPD: the answer is -fnl http://stackoverflow.com/a/37872291/1198451
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perltidy: an option to keep sub($args){} as a single line?
by runrig (Abbot) on Jun 16, 2016 at 22:53 UTC | |
|
Re: Perltidy: an option to keep sub($args){} as a single line?
by choroba (Cardinal) on Jun 16, 2016 at 21:26 UTC | |
by alexbyk (Novice) on Jun 17, 2016 at 08:29 UTC | |
|
Re: Perltidy: an option to keep sub($args){} as a single line?
by runrig (Abbot) on Jun 17, 2016 at 16:09 UTC |