Skip to content

Instantly share code, notes, and snippets.

@elee
Created December 8, 2011 04:55
Show Gist options
  • Save elee/1446159 to your computer and use it in GitHub Desktop.
Save elee/1446159 to your computer and use it in GitHub Desktop.
fixed
use strict;
use warnings;
use diagnostics;
use feature qw(say);
my @arr = grep { $_ % 2 == 0 } 1..10;
my $name = 'slim shady';
bar(\@arr,$name);
sub bar
{
my($first,$second) = @_;
say $name;
foreach my $item (@$first)
{
say $item;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment