# stdin in format: 8594002931643;Brmburky - hov.na cibul;-15 use v5.12; while (<>) { chomp; say STDERR "--- $_"; my ($barcode, $name, $price) = split(/;/); $price = -$price; print <