Stories
Slash Boxes
Comments
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

use Perl Log In

Log In

[ Create a new account ]

JadeNB (9501)

JadeNB
  (email not shown publicly)
+ -

  Comment: GCDs in a regex (Score 1) on 2009.12.17 10:38

by JadeNB on 2009.12.17 10:38 (#71413)
Attached to: What's your coolest Perl one-liner?
I was very proud of this recent substitution that implements the Euclidean algorithm: http://perlmonks.org/?node_id=804838 It follows in the fine tradition of the regex primality test by using repeated capturing groups to perform division with remainder.
Read More 7 comments
Comments: 7
+ -

  Comment: Other distributions (Score 1) on 2009.11.23 15:40

by JadeNB on 2009.11.23 15:40 (#71220)
Attached to: Hash Objects and AutoInflation
I got very interested a while back, and stumbled on a slew of distributions that do similar things. In addition to those that are mentioned in reply to revdiablo's post, would any of Object::Lazy, Class::Delay, or Object::Trampoline (obtained by searching for 'delay' on CPAN) do something like what you'd like?
Read More 4 comments
Comments: 4