/[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 1265 - (hide annotations)
Sun Aug 9 20:10:21 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: text/plain
File size: 236 byte(s)
fix foreach my combination
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     test($a);
21     }

  ViewVC Help
Powered by ViewVC 1.1.26