# from A. Pagaltzis # on Monday 08 October 2007 22:44: >* Eric Wilhelm <[EMAIL PROTECTED]> [2007-10-09 01:40]: >> The brackets are clunky though, particularly with the qw() >> inside them. >> >> use relative Third => -import => qw(with some args); > >You mean `-import =>` is less clunky than `[]`, and sometimes >having to write several `use relative` lines is less clunky than >being able to write only one? :-)
No. I mean "the brackets are clunky, particularly with the qw() inside them". >> And don't forget some way to not call import. > ... > use relative Bar => [], Baz => []; > >Doesn’t seem to be a problem… the mapping even is 1:1. "would be" 1:1. It's too bad the () isn't an option, so we have to struggle with [] vs [qw(...)] and whether or not to attempt parsing a list. Maybe something involving '--', but then there's a quoting hassle again. In all, the [qw(...)] is probably the easiest unless you want to read the source of caller()'s file and look for a () :-O. Anyway, this is an unchecked eval, and always-on. # import the symbols from the loaded module into the caller module eval qq{ package $caller; $module->import }; --Eric -- "It works better if you plug it in!" --Sattinger's Law --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------