develooper Front page | perl.perl5.porters | Postings from July 2009

Re: Deprecating ' as a package separator [Another overdue deprecation]

Thread Previous | Thread Next
From:
demerphq
Date:
July 18, 2009 02:26
Subject:
Re: Deprecating ' as a package separator [Another overdue deprecation]
Message ID:
9b18b3110907180226i7e14bce8x6f93e3230e5787f8@mail.gmail.com
2009/7/18 Michael G Schwern <schwern@pobox.com>:
> Tatsuhiko Miyagawa wrote:
>> On Fri, Jul 17, 2009 at 5:30 PM, Michael G Schwern<schwern@pobox.com> wrote:
>>> I don't see a down side to leaving it in the language.  It isn't harming
>>> anything.  It isn't causing newbie confusion.
>>
>> I can't speak as a newbie, but I'm not 100% sure this isn't confusing at all:
>>
>>   use strict;
>>   my $name = "Joe";
>>   print "$name's birthday is tomorrow\n";
>>
>> Since it's fully qualified strict doesn't even complain, while
>> warnings would tell you something's wrong.
>
> $ perl -w
> use strict;
> my $name = "Joe";
> print "$name's birthday";
>
> Name "name::s" used only once: possible typo at - line 3.
> Use of uninitialized value $name::s in concatenation (.) or string at - line 3.
>
> Its interesting.  In my experience I've never seen a newbie do that... or done
> it myself either.  Have you?

Yes.

Yves



-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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