[Chicago-talk] Not enough format arguments

Andy_Bach at wiwb.uscourts.gov Andy_Bach at wiwb.uscourts.gov
Mon May 10 09:34:14 PDT 2010

Not sure what exactly would be best (splice and numbers seems odd) but:

splice(@{$printArray[$ii]}, 0, 4) if @{$printArray[$ii]}

You could use the "pitchfork" ? : operator

@{$printArray[$ii]} ? splice(@{$printArray[$ii]}, 0, 4) : 0

That is, a default of zero if the array is empty.


Andy Bach
Systems Mangler
Internet: andy_bach at wiwb.uscourts.gov
Voice: (608) 261-5738;
Cell: (608) 658-1890

Ducharme's Axiom:
If you view your problem closely enough you
will recognize yourself as part of the problem.

More information about the Chicago-talk mailing list