You could do 2 things:

either say:
if ($fields[14] =~ /[AM]/)

or

if ($fields[14] =~ /M|A/)

the first uses a character class, the second a simple boolean 'or'

hth,

Jos Boumans



Govinderjit Dhinsa wrote:

> One question please,   I want to search for  M and A, at the moment I am
> only searching for M (as below)
> if ($fields[14] =~ /M/)
>
> Would the example below be correct please;
> if ($fields[14] =~ /\M\|\A\/)
>
>         Your help is much APPRECIATED
>
> > Kind Regards,
> > GD
> >

Reply via email to