Skip to content

Instantly share code, notes, and snippets.

@takkkun
Created March 27, 2013 12:51
Show Gist options
  • Select an option

  • Save takkkun/5253949 to your computer and use it in GitHub Desktop.

Select an option

Save takkkun/5253949 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
sub list {
qw/a b c/;
}
sub array {
my @array = qw/a b c/;
@array;
}
print scalar(list), "\n"; # => "c"
print scalar(array), "\n"; # => 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment