jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
because each time the part between the two / / is the same, I get the feeling this can be done in a shorter way, right ?if ( $a =~ /abcdefgh/ || $b =~ /abcdefgh/ || $c =~ /abcdefgh/ || ..... +.. ) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: howto make a very long IF statment shorter
by ikegami (Patriarch) on Jun 29, 2006 at 15:16 UTC | |
|
Re: howto make a very long IF statment shorter
by Fletch (Bishop) on Jun 29, 2006 at 15:16 UTC | |
|
Re: howto make a very long IF statment shorter
by Herkum (Parson) on Jun 29, 2006 at 15:51 UTC | |
|
Re: howto make a very long IF statment shorter
by johngg (Canon) on Jun 29, 2006 at 21:05 UTC | |
by ikegami (Patriarch) on Jun 29, 2006 at 21:51 UTC | |
by johngg (Canon) on Jul 05, 2006 at 17:10 UTC | |
by ikegami (Patriarch) on Jul 11, 2006 at 16:50 UTC | |
by johngg (Canon) on Jul 11, 2006 at 20:28 UTC |