On Sun, Feb 26, 2017 at 9:38 PM, ToddAndMargo <toddandma...@zoho.com> wrote:
> On 02/26/2017 06:02 PM, Brandon Allbery wrote: >> >> On Sun, Feb 26, 2017 at 8:14 PM, ToddAndMargo <toddandma...@zoho.com >> <mailto:toddandma...@zoho.com>> wrote: >> >> Speaking of syntax errors, what is wrong with these >> two lines (not used a the same time)? >> >> use Terminal::ANSIColor qw[ color ]; >> use Terminal::ANSIColor::color; >> >> >> The first one attempts to import a symbol "color" from the module >> "Terminal::ANSIColor". >> The second attempts to import all (or default export) symbols from the >> module "Terminal::ANSIColor::color", which doesn't exist. >> > > Neither work. What would the proper syntax be? > It should be the first, but it appears to be unimplemented at present. Only tagged imports work ( https://docs.perl6.org/language/modules#Exporting_and_Selective_Importing). "Note there currently is no way for the user to import a single object if the module author hasn't made provision for that, and it is not an easy task at the moment (see RT #127305)." -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net