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

Re: RFC: Autoloading charnames

Thread Previous | Thread Next
From:
Jesse Luehrs
Date:
November 23, 2011 05:39
Subject:
Re: RFC: Autoloading charnames
Message ID:
20111123133902.GB6369@tozt.net
On Wed, Nov 23, 2011 at 01:17:20PM +0100, Johan Vromans wrote:
> 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.

Sure, I think that's confusing too.

-doy

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