go ahead... be a heretic | |
PerlMonks |
Re: Magical Auto-Decrementby Brovnik (Hermit) |
on Jul 04, 2001 at 21:34 UTC ( [id://93899]=note: print w/replies, xml ) | Need Help?? |
Nice try, but of course, the issue re. the boundary cases still holds,
so the following
give results which aren't reversible. Update: (following comment below) Yes, you should eat the left-char on underflow, and --"a" => undef and --0 => undef. I was going to make a point about keeping items
in the right order for a sort, but of course zz++ == aaa
which screws up that point. Hmmm...
In Section
Cool Uses for Perl
|
|