in reply to Fine tuning my condition statement
The '^' matches the beginning of a string, and the '$' matches the end, emulating an 'eq' function for whatever's in between them. The '|'s are roughly equivalent to an 'or' statement: this will match 'first' or 'second' or 'third'.next if $field =~ /^(first|second|third)$/;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Fine tuning my condition statement
by Anonymous Monk on Nov 20, 2002 at 20:25 UTC |