Skip to content

Instantly share code, notes, and snippets.

@mackee
Created August 7, 2013 02:50
Show Gist options
  • Save mackee/6170775 to your computer and use it in GitHub Desktop.
Save mackee/6170775 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
sub hoge {
return ('aaa');
}
sub foo {
my @a = ('aaa');
return @a;
}
say scalar(hoge()); # => aaa
say scalar(foo()); # => 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment