http://qs321.pair.com?node_id=667397


in reply to Subtraction by digit

The A trivial PDL solution would be:
use strict; use warnings; use PDL; my $first = pdl qw/1 2 3 4 5 6/; my $second = pdl qw/2 9 8 4 7 6/; my $result = $first - $second; print "$result\n";