in reply to Ksh style select menus in perl
It supports these obvious invocations:
I've also just about got an interactive map-filtering style working too:select (LIST) { block; } select $var (LIST) { block; } select my|local|our $var (LIST) { block; }
I figure it doesn't make any sense to support the following, because it just reduces to map():LIST2 = select {block;} LIST;
I'm glad other people are thinking about this, and I'll look forward to sharing my code with you soon!LIST2 = select /expr/, LIST;
Tim Maher, "yumpy"
Consultix
tim@teachmeperl.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Ksh style select menus in perl
by yumpy (Sexton) on Sep 05, 2002 at 18:22 UTC | |
by Anonymous Monk on Nov 25, 2002 at 23:20 UTC | |
by yumpy (Sexton) on May 13, 2003 at 17:37 UTC |