in reply to Printing Array Output Outisde foreach

Hi ahjohnson2,
..I'm running a .csv list through a foreach loop, and if certain criteria is met, I want to print it out but separated by categories..

Since, you have a CSV file, why not use Text::CSV or Text::CSV_XS
And since, a sample of your dataset is not shown, what categories are you talking about please?

Then have you also tried using Data::Dumper to print your final output to see how it might look like?

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
  • Comment on Re: Printing Array Output Outisde foreach