develooper Front page | perl.beginners | Postings from February 2009

Re: how to do this in one line (with map?)

Thread Previous | Thread Next
From:
pablo
Date:
February 20, 2009 01:19
Subject:
Re: how to do this in one line (with map?)
Message ID:
20090220091947.GA7644@arch
On Wed, Feb 18, 2009 at 10:12:44AM -0800, John W. Krahn wrote:
>
> my @ids = map /^\w/ ? (split)[0] : (), `mailq`;
>

thanks, this was just what I was looking for.

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