develooper Front page | perl.perl6.language | Postings from September 2005

Re: @array = $scalar

Thread Previous | Thread Next
From:
Ashley Winters
Date:
September 1, 2005 00:58
Subject:
Re: @array = $scalar
Message ID:
cda42dbb0509010058242e43f6@mail.gmail.com
On 8/31/05, Ingo Blechschmidt <iblech@web.de> wrote:
> Hi,
> 
>     @array = $scalar;                    # really means
>     @array = ($scalar,);                 # same as

If list construction is via the &infix:<,> operator, does that mean a
blasphemous sinner could create &infix:<,=> as a synonym for push?

@array ,= $foo  ;  @array = @array, $foo;

Ashley Winters

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