in reply to Re: (s)printf question: eliminating plus sign before zeros
in thread (s)printf question: eliminating plus sign before zeros
Zaxo++
In fact, playing with your solution, I can 'simplify' it further
printf $_ ? '%+4d' : '%4d', $_ for @nums;But that's starting to look like golf...
dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: (s)printf question: eliminating plus sign before zeros
by BrowserUk (Patriarch) on Dec 17, 2003 at 22:43 UTC |