|Keep It Simple, Stupid|
Re^15: How best to strip text from a file?by Kenosis (Priest)
|on Nov 14, 2012 at 03:33 UTC||Need Help??|
Yes, nice one! The keys you're creating to track Order ID/title will look something like "PO-9999,Item title here.", so that should work.
As a point of clarification, since you've declared %hash right below the start of the for loop that iterates through the records, it's not necessary to use a hash reference within that hash's scope. A hash reference to %hash was sent to the subroutine, so the entire hash wouldn't have to be copied in order to access the hash's values for writing to the Excel spread sheet.
Here are some equivalents:
This means that the following:
Can be written as:
It's certainly OK if you prefer working with the hash reference. I'd tend to work with the hash within its scope, and a reference to it outside its scope, e.g., within a subroutine.
It's been nice working with you on this, and it's clear to me that you would have done it on your own, but I appreciate this opportunity, as I learn from each task.
As before, please let me know if you have any more questions about this...