Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Seems like I'm on the right track, but this is a more elegant implementation. I was not previously familiar with the ability to suck an entire array into a hash using the @hash{@array}=() syntax.
One quick syntactical question... using this method, how would I set each hash key to a defined static value? Using something like: @hash{@array}='MyValue'; Only seems to set the value for the first key... In reply to Re^3: How to check if a variable's value is equal to a member of a list of values
by cls33
|
|