> >> __DATA__ > >> abc0[1-9].ctr.[pad,spd].set.in > >> abc[01-22].ctr.[pad,spd].set.in > >> abcL[1,2,3].ctr.[pad,spd].set.in > >> abcL[1,2,3].ctr.[pad,spd].set.in > >> abcL[1,2,3].ctr.[70,001].set.in > >> > --------------------------------------------------- > >> > >> It should work for lists of ranges, and ranges of > strings as well as > >> numbers. > >> > >> Regarding incorporating into Getopt::Long, see the > Tips and Tricks > >> section of the doco.
Brian, Can this solution be generalized in a way to support --option_value=abc0[1-9].ctr.[pad,spd].set.in,xxx0[2-8].mmm.[rst,spd].afr.org types? Means those _DATA_ lines all appear in one line separated by comma as above (instead of newline separated). Should it be efficient to do in the expand_string() or from the main while iteration just before calling expand_string. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs