/[webpac2]/trunk/t/conf/normalize/sub.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/t/conf/normalize/sub.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1277 - (hide annotations)
Wed Aug 19 16:24:43 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: text/plain
File size: 253 byte(s)
insert space before if
1 dpavlin 1265 # check all repairs in WebPAC::Parser
2    
3 dpavlin 1061 sub foo {
4     push @test, 'foo';
5     }
6    
7     sub bar($) {
8     push @test, "bar >>" . shift(@_) . "<<";
9     }
10    
11     foo();
12     bar(foo());
13     bar(42);
14 dpavlin 1265
15     sub test($) {
16     push @test, $_[0];
17     }
18    
19     foreach my $a ( 1,2,3 ) {
20 dpavlin 1277 test($a) if length($a) > 0;
21 dpavlin 1265 }

  ViewVC Help
Powered by ViewVC 1.1.26