in reply to Re: Re: sprintf and for loop weirds???
in thread sprintf and for loop weirds???
for my $n ($[..$#a) { ... }
For the rare possibility where the first index of arrays may be non-zero as a result of some other strange code obfuscation. :-)
Update : push(@b, sprintf("%.2f", $_)) foreach @a; as suggested by larsen may be nicer and much prettier, but hey! I like obfuscated code :-)
Ooohhh, Rob no beer function well without!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: sprintf and for loop weirds???
by blakem (Monsignor) on Nov 04, 2001 at 16:26 UTC | |
by rob_au (Abbot) on Nov 04, 2001 at 17:30 UTC |