in reply to Can someone help me make this script more efficient
In Perl, a hash is structure that contains a list of pairs of related things. For example, you could have a hash that had a list of coins/notes and their value, something like:
5 => "5p coin", 500 => "£5 note",
I'm sure using such a thing would make your script more efficicent.
See Variable names for a discussion on hashes, and Perl Data Structures Cookbook for more details and examples of hashes.
|
|---|