use Modern::Perl; my $sum_of_used; @ARGV = ; { no warnings qw/numeric uninitialized/; $sum_of_used += (split /\s+/)[2] while ; } say $sum_of_used;