[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Problems



># Start looking for the pattern we were given.
>for $key (keys %inventory)
>{
>                                # Look for the 'sounds-like' pattern...
>                                if ($inventory{$key} =~ $pattern)
>                                {

You forgot something in that pattern match. Try using:

                                if ($inventory{$key} =~ m{$pattern})

instead.




--
Party? Party, lord? Yes, lord. Right away, lord.
        - Beopunk Cyberwulf