On 25/09/2007, Michael G Schwern <[EMAIL PROTECTED]> wrote:
> Rafael Garcia-Suarez wrote:
> > I just committed change 31968 to ExtUtils::MM_Unix to add dragonfly to
> > the list of BSD-like OSes. See
> > http://public.activestate.com/cgi-bin/perlbrowse/p/31968
> >
> > But while doing so, I noticed that the statement was buggy anyway, so I
> > fixed that too:
> > http://public.activestate.com/cgi-bin/perlbrowse/p/31969
>
> What was buggy about it?

"or" has lower precedence:

$ perl -MO=Deparse,-p -e '$Is_BSD     = $^O =~ /^(?:free|net|open)bsd$/ or
 $^O eq "bsdos" '
(($Is_BSD = ($^O =~ /^(?:free|net|open)bsd$/)) or ($^O eq 'bsdos'));
-e syntax OK

Reply via email to