John Porter wrote: > > > As a solution, a UNIVERSAL:::require() method can be added with the following > > syntax: > > > > $module = "Some::Module"; > > $module->require; > > Seems to me that it would need to be written as > > $module->UNIVERSAL::require; > > How do you propose to avoid that? Huh? All classes inherit from UNIVERSAL implicitly. It's the same reason you can write: $module->can('dance'); For any class, even one that doesn't exist. -Nate
- RFC 253 (v1) UNIVERSAL::require() Perl6 RFC Librarian
- Re: RFC 253 (v1) UNIVERSAL::require() Nathan Wiger
- Re: RFC 253 (v1) UNIVERSAL::require() Michael G Schwern
- Re: RFC 253 (v1) UNIVERSAL::require() John Porter
- Re: RFC 253 (v1) UNIVERSAL::require() Nathan Wiger
- Re: RFC 253 (v1) UNIVERSAL::require() John Porter
- Re: RFC 253 (v1) UNIVERSAL::require() Michael G Schwern
- Re: RFC 253 (v1) UNIVERSAL::require() John Porter