|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Re^5: Hash versus chain of elsifsby choroba (Cardinal) |
| on Nov 22, 2021 at 12:33 UTC ( [id://11139023]=note: print w/replies, xml ) | Need Help?? |
|
Note that hash needs key and value pairs, so you're storing only the site names without www as keys; the www. prefixed ones are stored as values. Probably not what you want. The fast way how to initialize the keys is
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||