in reply to Populating Hash of hashes
If you want even less, work the module Set::CrossProduct does exactly what you want, wrapped in a neat iterator.
Another option is to the built-in function glob:
$ perl -wle 'print for glob "{1,2}{3,4,5}{6,7}"' 136 137 146 147 156 157 236 237 246 247 256 257
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Populating Hash of hashes
by zeni (Beadle) on Jul 28, 2009 at 04:31 UTC |