Skip to content

Instantly share code, notes, and snippets.

@kotaroito
Created March 30, 2012 00:06
Show Gist options
  • Save kotaroito/2245108 to your computer and use it in GitHub Desktop.
Save kotaroito/2245108 to your computer and use it in GitHub Desktop.
Difference between array and list on Perl
$ perl -E 'say scalar (@array=qw(foo bar piyo))'
3
$ perl -E 'say scalar qw(foo bar piyo)'
piyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment