Hmmm, it's an interesting idea. I poked around CPAN searching for "curry" in hope, but nothing quite like what you wanted. Personally, I think something like this isn't too bad, for small scopes at least:
for ($object) { $_->log("blah"); }
But yeah, you could certainly implement it in probably only a few lines of code, using Exporter::Lexical and curry.
In reply to Re: "importing" methods?
by tobyink
in thread "importing" methods?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |