Created
April 4, 2011 09:43
-
-
Save trapd00r/901378 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings FATAL => 'all'; | |
my @fruits = qw(orange apple pear pineapple blueberry); | |
for my $i(keys(@fruits)) { | |
printf("%d: %s\n", $i + 1, $fruits[$i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment