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

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

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
July 17, 2009 18:22
Subject:
Re: Deprecating ' as a package separator [Another overdue deprecation]
Message ID:
4A6123CE.3030306@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?


-- 
Don't try the paranormal until you know what's normal.
    -- "Lords and Ladies" by Terry Prachett

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