Mega Code Archive

 
Categories / Perl / Statement
 

Using foreach statement with print

print "Current number: $_.\n" foreach (1 .. 10);