Re: Synopsis 26

2007-03-19 Thread Damian Conway
Thom Boyer wrote: I never could find the Pod-to-XHTML'd version of S26 -- the document attached to that email was S26.pod6, not S26.xhtml. Attached. I don't want to bug Damian, because obviously he has enough of life happening, as it were. More than enough! Thank-you all for

Enhanced enumerations

2007-03-19 Thread Jonathan Lang
Some (many?) enumerations represent cycles, where incrementing from the last element takes you back to the first: the seasons, the months, the days of the week, the hues, etc. How hard would it be to write a module that lets you say something like: enum weekdays is cycle Sun Mon Tue Wed Thu

Re: Enhanced enumerations

2007-03-19 Thread Andy Armstrong
On 19 Mar 2007, at 21:31, Jonathan Lang wrote: Some (many?) enumerations represent cycles, where incrementing from the last element takes you back to the first: the seasons, the months, the days of the week, the hues, etc. How hard would it be to write a module that lets you say something

Re: request new Mapping|Hash operators

2007-03-19 Thread David Green
On 3/18/07, Darren Duncan wrote: On Sun, 18 Mar 2007, Aaron Crane wrote: That's easy even in Perl 5. This modifies %hash in-place: my @values = delete @[EMAIL PROTECTED]; @[EMAIL PROTECTED] = @values; [...] If %hash contained keys a,b,c and @old_names was a and @new_names was b,