Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
etc in a long list. i am trying to write a script that extracts all hits beggining with /:swiss. My attempted if statement is below, it doesn't get any error messages but it also doesn't run! can anyone help??/:swiss|Q9L572|DNAA_STRPY /:tremblnew|AAK98805|AAK98805 /:swiss|O08397|DNAA_STRPN
if ($array[1] eq /^\/:swiss| (\d+)|(\d+)/) { print $array[1]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: selecting within elements of arrays
by broquaint (Abbot) on Jun 05, 2002 at 10:30 UTC | |
|
Re: selecting within elements of arrays
by Joost (Canon) on Jun 05, 2002 at 10:35 UTC |