grep question

2011-07-19 Thread Steven Surgnier
Hi, I desire a concise conditional statement which simply checks if each entry in an array matches a given string. For example: print "all the same" if (grep {m/test_name/} @bins) == scalar @bins); #END CODE I thought, "grep will return the number of matches, so why not just check to see if it

Choosing between look up tables

2011-07-08 Thread Steven Surgnier
Hi everyone, I could use both suggestions and answers on the follow topic. The problem I'm trying to solve is quite simple: I must parse through a large csv file. A field within the csv will signify which product type the included data is associated with. Once the product type is known then a f