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
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:
> >
> >
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...
>
--- 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
--- 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) {
>