regex like option *values*

2011-03-02 Thread p sena
Hi, I want to use option and values like:- --option_name abc0[1-9].ctr.{pad,spd}.set.in or --option_name abc[01-22].ctr.{pad,spd}.set.in or --option_name abcL{1,2,3}.ctr.{pad,spd}.set.in or --option_name abcL[1,2,3].ctr.{pad,spd}.set.in or --option_name abcL{1,2,3}.ctr.{70,001}.set.in etc

Help with subroutine

2011-03-02 Thread Barry Brevik
I have a subroutine to which I want to pass a hash by reference. In the real program, the hash in the caller starts out empty, and the subroutine adds values to it. The hash eventually becomes quite large, so I want the subroutine to add values to the caller's hash. The following sample code