Kent, Mr. John (Contractor) wrote:
> Greetings,
> 
> 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;
> 

How 'bout:

printf "%8d",$_ for (@numray);

perl -e 'my @array = (0..9); printf "%8d",$_ for (@array);'

--
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