CARVIEW |
Select Language
HTTP/2 200
cache-control: max-age=43200
server: Combust/Plack (Perl)
vary: Accept-Encoding
content-encoding: gzip
content-length: 1473
content-type: text/html; charset=utf-8
last-modified: Sat, 11 Oct 2025 14:33:58 GMT
traceparent: 7bd9a05ca1d095e146970607f9eddd1b
strict-transport-security: max-age=15768000
split in scalar context [was: Alarums and Excursions] - nntp.perl.org
Front page | perl.perl5.porters |
Postings from July 2008
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About

split in scalar context [was: Alarums and Excursions]
Thread NextFrom:
Peter ScottDate:
July 29, 2008 03:01Subject:
split in scalar context [was: Alarums and Excursions]Message ID:
pan.2008.07.29.10.01.15.442211@PSDT.comOn Sun, 27 Jul 2008 19:59:24 -0600, Tom Christiansen wrote: > or even better > > #!/usr/bin/perl -n > next if /^=for\s+(index|later)/; > $chars += length; > $words += split; Aha. So I am not the only one with a use for split() in scalar context. So can we please eliminate the annoying warning Use of implicit split to @_ is deprecated that it generates (when you enable warnings, which Tom didn't)? Why it ever split to @_ I don't know and don't want to, but this has been deprecated roughly forever and surely it is time to move to the post-deprecation phase of removal. -- Peter Scott https://www.perlmedic.com/ https://www.perldebugged.com/Thread Next
- split in scalar context [was: Alarums and Excursions] by Peter Scott
- Re: split in scalar context [was: Alarums and Excursions] by Nicholas Clark
- Re: split in scalar context [was: Alarums and Excursions] by Peter Scott
- Re: split in scalar context [was: Alarums and Excursions] by Abigail
- Re: split in scalar context [was: Alarums and Excursions] by Aristotle Pagaltzis
- Re: split in scalar context [was: Alarums and Excursions] by Yitzchak Scott-Thoennes
- Re: split in scalar context [was: Alarums and Excursions] by Aristotle Pagaltzis
- Re: split in scalar context [was: Alarums and Excursions] by Yitzchak Scott-Thoennes
nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About