|
|
| No such thing as a small change | |
| PerlMonks |
Re: Re: Basic Objects with Overloaded Operatorsby Zaxo (Archbishop) |
| on May 31, 2002 at 01:31 UTC ( #170579=note: print w/ replies, xml ) | Need Help?? |
|
The Camel, 3ed. has an example: The book does not discuss the rules, but I'm sure this example breaks some of them. To work with while (<$foo>){}, I think the return value should be true in 'bool' context until the source is exhausted. To cope with my @shuffle=<$deck>; and with slices, a wantarray clause should be there to shuffle and return the whole $deck, leaving $deck empty. The rules you observe should only be the ones you need to observe. After Compline,
In Section
Tutorials
|
|
||||||||||||||||||||||