Returning multiple values 

my @words = map { split /\s+/, $_ } <STDIN>;
my @words = map { /(\w+)/g } <STDIN>;