Advertisement

11.26.2008 at 11:50AM PST, ID: 23938481 | Points: 500
[x]
Attachment Details

Perlcritic config

Asked by oleber in Perl Programming Language

Look to the Snippet:Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
if ( not $cond and not $cond and not $cond and not $cond and not $cond and not $cond and not $cond and not $cond ) {
    print "hi";
}
 
 
After:    perltidy -npro -i=4 -nt -bar del.pl
 
if (    not $cond
    and not $cond
    and not $cond
    and not $cond
    and not $cond
    and not $cond
    and not $cond
    and not $cond ) {
    print "hi";
}
 
 
but I need that the 'and' and the 'print' shall not be align:
 
if (  not $cond
      and not $cond
      and not $cond
      and not $cond
      and not $cond
      and not $cond
      and not $cond
      and not $cond ) {
    print "hi";
}
 
Is this possible?
[+][-]11.26.2008 at 01:04PM PST, ID: 23045707

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.26.2008 at 11:39PM PST, ID: 23048136

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.02.2008 at 11:31AM PST, ID: 23079972

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081119-EE-VQP-49 - Hierarchy / EE_QW_2_20070628