On Wed, Mar 25, 2009 at 04:09:12PM +0000, David Cantrell wrote:
> On Wed, Mar 25, 2009 at 11:25:15AM -0400, Jonathan Yu wrote:
> 
> > So, I guess this is just my long-winded way of saying that you should
> > include a method of mapping operating systems to class names, but in a
> > portable manner
> 
> Devel::CheckOS is your friend.  It knows that, for example, Solaris,
> Irix and AIX are all Unix.

Having looked at it, it's not sufficient. When run on, say, Solaris, I
want to try in order:

  Foo::Bar::Solaris
  Foo::Bar::Unix
  Foo::Bar

Devel::CheckOS can't apply this ordering. I could get a list of all
possible supported names, then filter that by what this machine is.

I'm sure I recall in some code somewhere, the use of a list of possible
OS family names, from most to least specific, keyed by $^O. I'm thinking
something more like that would be best.

-- 
Paul "LeoNerd" Evans

leon...@leonerd.org.uk     |    CPAN ID: PEVANS
srand($,=" ");print sort{rand>0.5}grep{0.8>rand}qw(another Just hacker of Perl)

Attachment: signature.asc
Description: Digital signature

Reply via email to