<div>try</div>
<div> splice(@{$printArray[$ii]}, 0, 4) if @{$printArray[$ii]} </div>
<div> </div>
<div>replace to </div>
<div> </div>
<div> defined @{$printArray[$ii]} ? splice(@{$printArray[$ii]}, 0, 4) : ''; <br><br></div>
<div class="gmail_quote">On Tue, May 11, 2010 at 3:00 AM, <span dir="ltr"><<a href="mailto:china-pm-request@pm.org" target="_blank">china-pm-request@pm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send China-pm mailing list submissions to<br> <a href="mailto:china-pm@pm.org" target="_blank">china-pm@pm.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://mail.pm.org/mailman/listinfo/china-pm" target="_blank">http://mail.pm.org/mailman/listinfo/china-pm</a><br>or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:china-pm-request@pm.org" target="_blank">china-pm-request@pm.org</a><br><br>You can reach the person managing the list at<br> <a href="mailto:china-pm-owner@pm.org" target="_blank">china-pm-owner@pm.org</a><br>
<br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of China-pm digest..."<br><br><br>Today's Topics:<br><br> 1. (no subject) (shi feng)<br> 2. (no subject) (shi feng)<br>
3. Not enough format arguments (tiger peng)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 10 May 2010 10:54:10 +0800<br>From: shi feng <<a href="mailto:shifeng.xiaosai@gmail.com" target="_blank">shifeng.xiaosai@gmail.com</a>><br>
Subject: [PerlChina] (no subject)<br>To: <a href="mailto:china-pm@pm.org" target="_blank">china-pm@pm.org</a><br>Message-ID:<br> <<a href="mailto:k2o858d1b8b1005091954zef7d5504zdd1d9bafa0029c9c@mail.gmail.com" target="_blank">k2o858d1b8b1005091954zef7d5504zdd1d9bafa0029c9c@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://mail.pm.org/pipermail/china-pm/attachments/20100510/8e82a1f6/attachment-0001.html" target="_blank">http://mail.pm.org/pipermail/china-pm/attachments/20100510/8e82a1f6/attachment-0001.html</a>><br>
<br>------------------------------<br><br>Message: 2<br>Date: Mon, 10 May 2010 10:59:31 +0800<br>From: shi feng <<a href="mailto:shifeng.xiaosai@gmail.com" target="_blank">shifeng.xiaosai@gmail.com</a>><br>Subject: [PerlChina] (no subject)<br>
To: <a href="mailto:China-pm@pm.org" target="_blank">China-pm@pm.org</a><br>Message-ID:<br> <<a href="mailto:t2n858d1b8b1005091959ld9979c42qf69353e773af7e93@mail.gmail.com" target="_blank">t2n858d1b8b1005091959ld9979c42qf69353e773af7e93@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://mail.pm.org/pipermail/china-pm/attachments/20100510/da6f8f7d/attachment-0001.html" target="_blank">http://mail.pm.org/pipermail/china-pm/attachments/20100510/da6f8f7d/attachment-0001.html</a>><br>
<br>------------------------------<br><br>Message: 3<br>Date: Mon, 10 May 2010 07:07:34 -0700 (PDT)<br>From: tiger peng <<a href="mailto:tigerpeng2001@yahoo.com" target="_blank">tigerpeng2001@yahoo.com</a>><br>Subject: [PerlChina] Not enough format arguments<br>
To: <a href="mailto:china-pm@pm.org" target="_blank">china-pm@pm.org</a><br>Message-ID: <<a href="mailto:597246.61797.qm@web58701.mail.re1.yahoo.com" target="_blank">597246.61797.qm@web58701.mail.re1.yahoo.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br><br>Hello,<br> <br>I try to format the output as below with last couple of colmns being able to extend from 0 to any number of lines. If there is no data after 5th element, 'Not enough format arguments' warning message will be triggered. Is ther any simple way to make the format do not complain?<br>
<br>Record1 12:30 98.40% 12 67.54% a(6) 77 80<br> b(1) 56 54<br> <br>format MFILE =<br>@<<<<<<<<<<<<<@>>>>> @>>>>> @>>>>> @>>>>> @>>@>>>@>>>>>@>>>>><br>
splice(@{$printArray[$ii]}, 0, 5), splice(@{$printArray[$ii]}, 0, 4) if @{$printArray[$ii]},<br> @>>@>>>@>>>>>@>>>>> ~~<br> splice(@{$printArray[$ii]}, 0, 4) if @{$printArray[$ii]}<br>
.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://mail.pm.org/pipermail/china-pm/attachments/20100510/decdda1e/attachment-0001.html" target="_blank">http://mail.pm.org/pipermail/china-pm/attachments/20100510/decdda1e/attachment-0001.html</a>><br>
<br>------------------------------<br><br>_______________________________________________<br>China-pm mailing list<br><a href="mailto:China-pm@pm.org" target="_blank">China-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/china-pm" target="_blank">http://mail.pm.org/mailman/listinfo/china-pm</a><br>
<br>End of China-pm Digest, Vol 49, Issue 1<br>***************************************<br></blockquote></div><br>