in reply to Re^5: RFC: Integer::Partition::Unrestricted
in thread RFC: Integer::Partition::Unrestricted
What happens when you want to use the real pos()? I'm not worried about the methods. I'm talking about using the builtins, which you don't call as methods. :)
?
use strict; use warnings; { package Foo; sub pos { "pos" } sub bar { my $foo = "xxx"; $foo =~ m/x/g; return pos $foo; }; }; use Test::More 'no_plan'; is( Foo->pos, "pos", "we can call Foo's pos method" ); is( Foo->bar, 1, "and still use pos inside the package" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: RFC: Integer::Partition::Unrestricted
by Aristotle (Chancellor) on Mar 01, 2006 at 15:19 UTC | |
by adrianh (Chancellor) on Mar 02, 2006 at 16:31 UTC |