in reply to Re: Help with decimals
in thread Help with decimals
The * sucks up the next variable in the list and uses it as the field width; in this case, it slurps the first appearance of $currentLine[2] in the list.foreach (@currentLine[3 .. 11]) { printf ("%.*f", $currentLine[2], $_/(10 ** $currentLine[2]) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Help with decimals
by La12 (Sexton) on Jul 30, 2001 at 10:03 UTC |