Re: BSD fixes

[email protected] ("Rafael Garcia-Suarez")
Newsgroups perl.makemaker
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.