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

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

Thread Previous | Thread Next
From:
Mark Jason Dominus
Date:
July 18, 2009 06:01
Subject:
Re: Deprecating ' as a package separator [Another overdue deprecation]
Message ID:
20090718130125.24955.qmail@plover.com
Michael Schwern:
> $ 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?

I have been bitten by that more than once.


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