Re: Array in a regexp

2004-05-07 Thread John W. Krahn
Jason Dusek wrote: > > Hi List, Hello, > Let's say I want to know if anything in @ARGV has one of a certain list > of suffixes in it. So I write: > >foreach (@ARGV) { > print if (/\.(fish|foul)$/); >} > > But if I have a long list of suffixes, then I would like to store the > suff

Re: Array in a regexp

2004-05-07 Thread Jenda Krynicky
From: Alok Bhatt <[EMAIL PROTECTED]> > --- Jason Dusek <[EMAIL PROTECTED]> wrote: > > Hi List, > > But if I have a long list of suffixes, then I would > > like to store the > > suffixes in an array, and then evaluate the array in > > my regular > > expression. What does this? I've tried: > > > >

Re: Array in a regexp

2004-05-07 Thread Jeff 'japhy' Pinyan
On May 7, Jason Dusek said: >But if I have a long list of suffixes, then I would like to store the >suffixes in an array, and then evaluate the array in my regular >expression. What does this? I've tried: > > @SUFF = (fish,foul); I think you mean @SUFFIXES. That's the array you use below... >

Re: Array in a regexp

2004-05-07 Thread Alok Bhatt
--- Alok Bhatt <[EMAIL PROTECTED]> wrote: > > --- Jason Dusek <[EMAIL PROTECTED]> wrote: > > Hi List, > > But if I have a long list of suffixes, then I > would > > like to store the > > suffixes in an array, and then evaluate the array > in > > my regular > > expression. What does this? I've tr

Re: Array in a regexp

2004-05-07 Thread Alok Bhatt
--- Jason Dusek <[EMAIL PROTECTED]> wrote: > Hi List, > But if I have a long list of suffixes, then I would > like to store the > suffixes in an array, and then evaluate the array in > my regular > expression. What does this? I've tried: > >@SUFF = (fish,foul); >foreach (@ARGV) { >