develooper Front page | perl.perl5.porters | Postings from December 2011

Re: Autoloading charnames for \N{} now in blead

Thread Previous | Thread Next
Karl Williamson
December 21, 2011 17:41
Re: Autoloading charnames for \N{} now in blead
Message ID:
On 12/20/2011 10:07 PM, Karl Williamson wrote:
> By commit fbb93542d6662666a88828fb4c15803f8ba377f0.
> The functions aren't autoloaded; there is no unimport method.

It occurred to me later that it might be useful to show the entire 
commit message for this:

Autoload charnames for \N{name}

This autoloads when needed.  It uses the :full and :short 
options.  :loose is not used because of its relative unfamiliarity in 
the Perl community, and is slower.  (If someone later added a typical 
"use charnames qw(:full)", things that previously matched under :loose 
would start to fail, causing confustion.  If :loose does become more 
common, we can change this in the future to use it; the converse isn't 

The callable functions in the module are not automatically loaded.  To 
access them, an explicit "use charnames" must be provided.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About