Skip to content

Instantly share code, notes, and snippets.

@brianw
Created August 25, 2009 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianw/175024 to your computer and use it in GitHub Desktop.
Save brianw/175024 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use warnings; use strict; use Data::Dumper;
sub foo {
my ($ref1, $ref2) = @_;
my @arr1 = @{$ref1};
my @arr2 = @{$ref2};
print Dumper \@arr1;
print Dumper \@arr2;
}
foo([1, 3, 5], [2, 4, 6]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment