in reply to Re^4: Store the outcome of a foreach loop in an array
in thread Store the outcome of a foreach loop in an array

I think either your rdfile() doesn't do what you think it should or your CSV holds all data in one line.

I could show you how to split on "\n" into multiple lines but that's rather dangerous with CSV input which could have line breaks inside content.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

</div
  • Comment on Re^5: Store the outcome of a foreach loop in an array