Skip to content

Instantly share code, notes, and snippets.

@yannk yannk/gist:107815 forked from anonymous/gist:107811
Created May 6, 2009

What would you like to do?
use warnings;
use strict;
my @a = mysub();
my %hash = (
foo => scalar( my @b = mysub() ),
bar => scalar @a,
baz => scalar( mysub() ),
boo => scalar(@{[ mysub() ]}),
sub mysub {
print "wantarray(): " . wantarray() . "\n";
return ( 'bar', 'baz', 'blah' );
use Data::Dumper;
print Dumper(\%hash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.