#!/usr/bin/perl use strict; use warnings; no warnings qw /syntax/; sub zup { join "\n" => map {join " " => map {shift @$_} @_} @{$_ [0]} } my @array1 = qw /ab bc cd de/; my @array2 = qw /cc dd ee gg/; my @array3 = qw /12 34 56 78/; print zup \(@array1, @array2, @array3); print "\n"; __END__ ab cc 12 bc dd 34 cd ee 56 de gg 78
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing multiple arrays as multiple column
by gopalr (Priest) on Apr 12, 2005 at 05:28 UTC | |
by tlm (Prior) on Apr 12, 2005 at 12:58 UTC | |
|
Re: Printing multiple arrays as multiple column
by tlm (Prior) on Apr 12, 2005 at 04:47 UTC | |
|
Re: Printing multiple arrays as multiple column
by tlm (Prior) on Apr 12, 2005 at 04:16 UTC |