To be true, I also had some trouble before I got my head around this given ... when. The whole idea of the default smart match takes some time to getting used to. If I want a smart match, I'll ask for one, explicitly, in all other cases I use something else, explicitly.
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] [d/l] |
| [reply] [d/l] [select] |
Yeah, thats the reason why I never use give/when and prefer the for/if/elsif/last workaround.
| [reply] [d/l] [select] |