NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Well, you can at least make `Number` much nicer (Score:1)
Reply to This
Re: (Score:1)
transworking:But I'm intrigued by that
gather/takein there -- that seemRe: (Score:1)
Yes, that is nicer. But with this version I wonder why you first make a copy, then mutate it, then return it. I would simply return the copy returned by
trans:Oh, and you can avoid writing down redundan
Re: (Score:1)
trand mutating in place -- habits developed hacking out quick Perl scripts back in the mid-90s. Your way is both more elegant and more efficient, a beautiful combination.Your second suggestion there is nifty, but I think I find your first a bit more elegant. Just a matter of taste.
BTW, the reason I keep on leaving out q and z is Microsoft defined the problem that way, and I'm trying to conform to their statements of the problem, even
Re: (Score:1)
Oh! I missed that part of the description.