Bman70 has asked for the wisdom of the Perl Monks concerning the following question:
In my searching the closest I got was another perlmonks thread:Title: "title from array" Author: "author from array" Date: "Date from array"
This gets all the information out, but not formatted right. Would I be able to add the text and newlines to this code, or should I use something entirely different? I realize it could probably be done with hashes but currently it's in arrays so hoping that can work. Thanks!while (@title, @author, @date) { print join ': ', map shift @$_ // 'NULL', \@title, \@author, \@dat +e; print "\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Iterate multiple arrays with added text
by haukex (Archbishop) on May 23, 2017 at 19:50 UTC | |
by Bman70 (Acolyte) on May 23, 2017 at 20:03 UTC | |
by stevieb (Canon) on May 23, 2017 at 20:20 UTC | |
by 1nickt (Canon) on May 23, 2017 at 20:22 UTC | |
by ww (Archbishop) on May 23, 2017 at 20:34 UTC | |
Re: Iterate multiple arrays with added text
by james28909 (Deacon) on May 23, 2017 at 22:03 UTC |