develooper Front page | perl.perl6.users | Postings from May 2020

Re: Raku -npe command line usage

Thread Previous | Thread Next
From:
Fernando Santagata
Date:
May 8, 2020 19:16
Subject:
Re: Raku -npe command line usage
Message ID:
CAJ+jyGgoR1OPvYe4RLcrn1i9rp3--VFiVoej8ZL0Fwi23AD_5g@mail.gmail.com
On Fri, May 8, 2020 at 6:10 PM Fernando Santagata <nando.santagata@gmail.com>
wrote:

> raku -e'lines() ==> grep(/^WARN/) ==> sort() ==> reduce({$^a ~ "\n" ~
> $^b}) ==> say()' sample.log
>

and the reduce call can be written more compactly: reduce({"$^a\n$^b"})

-- 
Fernando Santagata

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