kulls has asked for the wisdom of the Perl Monks concerning the following question:
I need a find unique pattern 'ssg' from @str, so that i can calculate the size of ssg* directly. it could be like $size{ssg} = 1 Can anyone please help me ? Update more : i just want to get the unique 'ssg' alone and i can add '*' pattern in future for getting the size. So i can get $size{ssg} = 1 like this to process further. - kulls@str= qw(ssg.nal ssg_00.nsr ssg_00.nsn ssg_00.nss);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Identifiying unique pattern
by BrowserUk (Patriarch) on Jan 06, 2006 at 04:40 UTC | |
|
Re: Identifiying unique pattern
by Tanktalus (Canon) on Jan 06, 2006 at 04:41 UTC | |
|
Re: Identifiying unique pattern
by vennirajan (Friar) on Jan 06, 2006 at 04:31 UTC | |
by kulls (Hermit) on Jan 06, 2006 at 08:37 UTC | |
|
Re: Identifiying unique pattern
by inman (Curate) on Jan 06, 2006 at 12:58 UTC | |
|
Re: Identifiying unique pattern
by ysth (Canon) on Jan 06, 2006 at 10:06 UTC |