in reply to Re: Iterate multiple arrays with added text
in thread Iterate multiple arrays with added text
However, while it outputs what I need, it gives the error:foreach my $i (0 .. @titles) { print "Title: $title[$i]\n"; print "Author: $author[$i]\n"; print "Date: $date[$i]\n\n"; }
So when I'm using print "Title: $title[$i]\n";, that $title is triggering the error.Use of uninitialized value within @titles in concatenation (.) or stri +ng at bdb.pl line 51. Title: Use of uninitialized value within @authors in concatenation (.) or str +ing at bdb.pl line 52. Author: Use of uninitialized value within @date in concatenation (.) or string + at bdb.pl line 53. Date:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Iterate multiple arrays with added text
by stevieb (Canon) on May 23, 2017 at 20:20 UTC | |
Re^3: Iterate multiple arrays with added text
by 1nickt (Canon) on May 23, 2017 at 20:22 UTC | |
Re^3: Iterate multiple arrays with added text
by ww (Archbishop) on May 23, 2017 at 20:34 UTC |