On Mon, Apr 19, 2010 at 05:42:21PM +0100, Barbie wrote:
> On Mon, Apr 19, 2010 at 05:05:49PM +0100, David Cantrell wrote:
> > That's a *really* bad way of checking.  If I'm reading it correctly,
> > then it will flag as OS-specific the following hypothetical modules:
> > 
> > Date::Holidays::AU::Darwin (public holidays specific to Darwin,
> >   Australia)
> > Test::Glob::Like::Win32 (fake up Win32-style globbing, whatever the
> >   hell that might be)
> > etc
> 
> It should be checking from the beginning of the name, and match exactly
> up to the first non-alphanumeric character. It should only be checking
> the top level namespace.

if( $name =~ /\b$platform\b/i )

will match ...::Darwin, thus incrementing $specific, thus returning 0
which I assume means "this is not a relevant result, throw it away".

-- 
David Cantrell | Minister for Arbitrary Justice

  Your call is important to me.  To see if it's important to
  you I'm going to make you wait on hold for five minutes.
  All calls are recorded for blackmail and amusement purposes.

Reply via email to