Skip to content

Instantly share code, notes, and snippets.

@trapd00r
Created April 4, 2011 09:43
Show Gist options
  • Save trapd00r/901378 to your computer and use it in GitHub Desktop.
Save trapd00r/901378 to your computer and use it in GitHub Desktop.
#!/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