OldMonkRum has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am using
push(@array,['X1','X2','X3','X4' ]);
Subsequently I am doing:
push(@array,['',$key,'','']);
Because X2 elements are coming from a certain hash and so on.
push(@array,[$key,'','','']);
Then I am using HTML::QuickTable
When I render: $qt->render(\@array);
The table has first column empty values till it hits an actual value. Any way, I can print only when its not empty i.e. not waste rows in the table?
Thanks a lot!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing empty elements from multi-dimensional array
by hippo (Archbishop) on Jul 18, 2017 at 12:48 UTC | |
|
Re: Removing empty elements from multi-dimensional array
by Laurent_R (Canon) on Jul 18, 2017 at 12:51 UTC | |
|
Re: Removing empty elements from multi-dimensional array
by OldMonkRum (Novice) on Jul 18, 2017 at 12:59 UTC | |
by hippo (Archbishop) on Jul 18, 2017 at 13:42 UTC | |
by tybalt89 (Monsignor) on Jul 18, 2017 at 19:31 UTC | |
|
Re: Removing empty elements from multi-dimensional array
by 1nickt (Canon) on Jul 18, 2017 at 13:05 UTC |