develooper Front page | perl.perl5.porters | Postings from January 2001

Re: More lvalue tomfoolery

Thread Previous | Thread Next
From:
Simon Cozens
Date:
January 15, 2001 14:23
Subject:
Re: More lvalue tomfoolery
Message ID:
20010115222310.A11081@pembro26.pmb.ox.ac.uk
On Mon, Jan 15, 2001 at 11:19:29PM +0100, abigail@foad.org wrote:
> On Mon, Jan 15, 2001 at 09:46:21PM +0000, Simon Cozens wrote:
> > Should this be legal?
> >     (($a) x 4) = 1;
> 
> Yeah, that would be neat.
> 
>     sub TIESCALAR {bless []} sub STORE {shift; print shift} tie $a => 'main';
>     (($a) x 4) = split /(?<=\s)/ => "Just another Perl Hacker\n";

./~ What shall we do, what shall we do, with all this useless beauty?

-- 
I washed a sock.  Then I put it in the dryer.  When I took it out, it was gone.
        -- Steven Wright

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