A+B: Difference between revisions

m
m (Added Klong example)
Line 2,683:
<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>;
 
=={{header|Perl 6}}==
Anonymous user