>>>>> "Rich" == Rich Morin <[EMAIL PROTECTED]> writes:

Rich> On occasion, I have found it useful to cobble up a "little language"
Rich> that allows me to generate a list of items, using a wild-card or some
Rich> other syntax, as:

Rich>    foo[0-9][0-9]  yields foo00, foo01, ...

Rich> I'm wondering whether Perl should have a similar capability, using REs.

Well, here's a cheap way:

my @list = glob ('foo{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}');

:-)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to