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

Re: split in scalar context [was: Alarums and Excursions]

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
July 29, 2008 12:30
Subject:
Re: split in scalar context [was: Alarums and Excursions]
Message ID:
20080729193048.GK9326@klangraum.plasmasturm.org
* Yitzchak Scott-Thoennes <sthoenna@efn.org> [2008-07-29 21:00]:
> The "correct" answer would presumably be:
> 
> $words += () = split ' ', $_, 0;

That doesn’t even need the `() =` to work. But the point was to
rely on `split`s default arguments.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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