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 ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Monday June 16, 2003
08:49 AM

Want, Want, Want

[ #12877 ]
It's been 7 months and folks are talking about method chaining, so it's time to advertise Want.pm again:

use Want;
if(want("OBJECT")){
   return $self;
}
else{
   return $value;
}

If you're planning on supporting method chaining, you'd best be using this module. Two warnings though: it causes the debugger to crash and it doesn't get along with the overload module.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Want used to be a required module for Attribute::Properties, but Want is not -w safe.

    "require v5.6" should be "require 5.006" to make it -w safe.

    And I think the module is too large. Perlhaps some autoloading technique can be used.

    2;0 juerd@ouranos:~$ perl -le'print +(split " ", `cat /proc/$$/stat`)[22]'
    3026944
    2;0 juerd@ouranos:~$ perl -le'use Want; print +(split " ", `cat /proc/$$/stat`)[22]'
    3469312