#! /usr/bin/perl my $i; my $j =1; foo: for ( $i =0; $i<10; $i++ ) { if ( $i < 5 ) { do { $j = $j+2 ; next foo; } until ( $j > 10 ); print $j; last; } }
Code tags added by GrandFather
In reply to I am a beginner for perl by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |