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

Re: RFC: Autoloading charnames

Thread Previous | Thread Next
From:
Johan Vromans
Date:
November 23, 2011 04:17
Subject:
Re: RFC: Autoloading charnames
Message ID:
m2bos3hw33.fsf@phoenix.squirrel.nl
Jesse Luehrs <doy@tozt.net> writes:

> I don't see why using a \N{} sequence should have any impact on what
> functions are available to use in my code.

Compare:

 $ perl -wE 'binmode STDOUT; warn File::Spec->catfile("foo","bar")'
 Can't locate object method "catfile" via package "File::Spec" (perhaps you forgot to load "File::Spec"?) at -e line 1.

with:

 $ perl -wE 'STDOUT->binmode; warn File::Spec->catfile("foo","bar")'
 foo/bar at -e line 1.

-- Johan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About