On Thu, Mar 26, 2009 at 6:51 AM, David Cantrell <da...@cantrell.org.uk>wrote:
> On Wed, Mar 25, 2009 at 05:57:45PM -0700, Bill Ward wrote: > > > As for where to put it, the way this would be useful to me would not be > as > > any sort of object (which rules out Class::) but as a sort of assertion > or > > query about the operating system. You wouldn't need to instantiate any > > objects of this class, it would just be for asking "what OS am I running > > on?" so OO is really not needed except maybe for some @ISA magic. > > > use OS::linux; # would fail under any non-Linux OS > > You can spell that 'use Devel::AssertOS qw(Linux)' :-) > I thought Devel was only for use in the development context, not "in the field" in a deployed module. Anyway $^O provides "linux" in lowercase, not "Linux."