A+B: Difference between revisions

m
Line 2,682:
=={{header|Perl}}==
<lang Perl>my ($a,$b) = split(' ', scalar(<STDIN>));
print "$a $b " . ($a + $b) . "\n";</lang>
 
# Or using The List::Util module and a modern perl...
say sum split /\s+/, scalar <STDIN>;</lang>
 
=={{header|Perl 6}}==
Anonymous user