in reply to Seperating values with spaces in array
In the case you want leading zeroes on the elements of @indexes, either put the leading zeroes on the elements before printing, or while printing them:
... push @indexes, sprintf '%03d', first_index { $_ eq $place } @first +Text; ...
or
print sprintf "%08d\n", $_ for @indexes;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Seperating values with spaces in array
by RuZombieSlayer (Novice) on Jan 17, 2016 at 12:01 UTC | |
by AnomalousMonk (Archbishop) on Jan 17, 2016 at 16:09 UTC |