On Wednesday 21 July 2004 10:52, Kent, Mr. John \(Contractor\) wrote:
>
> Greetings,

Hello,

> Want to print out a formattted line of numbers
>
> Is there a way to avoid having to:
> >printf "%8d %8d %8d ..... ten times",$num1,$num2,$num3, ... ,
> > $num10; ?
>
> Something like
> printf "%8d" * 10, @numray;

Perl has the "x" repetition operator so you can do:

printf "%8d" x @numray, @numray;


John
-- 
use Perl;
program
fulfillment


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to