Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: altering and printing an array

by Zaxo (Archbishop)
on Dec 05, 2005 at 07:15 UTC ( [id://514056]=note: print w/replies, xml ) Need Help??


in reply to altering and printing an array

BUU's reply is how I'd do it, but he forgot to rewrite the date in slashed format:

print "date\tversion\n"; for (0..$#dateArray) { my $date = $dateArray[$_]; $date =~ s!^(\d\d)(\d\d)(\d\d)$!$1/$2/$3!; print "${date}\t$versionArray[$_]\n"; }
I didn't alter the original array, just a copy of each element as it came up. There might be reason to get old-fashoned and look at perlform, or modern and Template Toolkit.

After Compline,
Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-05-30 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found