1 # $Id: AssertOS.pm,v 1.2 2007/09/28 16:30:11 drhyde Exp $
3 package Devel::AssertOS;
5 use Devel::CheckOS qw(die_if_os_isnt);
13 # localising prevents the warningness leaking out of this module
14 local $^W = 1; # use warnings is a 5.6-ism
18 Devel::AssertOS - require that we are running on a particular OS
22 Devel::AssertOS is a utility module for Devel::CheckOS and
23 Devel::AssertOS::*. It is nothing but a magic C<import()> that lets you
26 use Devel::AssertOS qw(Linux FreeBSD Cygwin);
28 which will die unless the platform the code is running on is Linux, FreeBSD
35 die("Devel::AssertOS needs at least one parameter\n") unless(@_);
39 =head1 BUGS and FEEDBACK
41 I welcome feedback about my code, including constructive criticism.
42 Bug reports should be made using L<http://rt.cpan.org/> or by email.
44 You will need to include in your bug report the exact value of $^O, what
45 the OS is called (eg Windows Vista 64 bit Ultimate Home Edition), and,
46 if relevant, what "OS family" it should be in and who wrote it.
48 If you are feeling particularly generous you can encourage me in my
49 open source endeavours by buying me something from my wishlist:
50 L<http://www.cantrell.org.uk/david/wishlist/>
60 L<Devel::AssertOS::Extending>
64 David Cantrell E<lt>F<david@cantrell.org.uk>E<gt>
66 Thanks to David Golden for suggesting that I add this utility module.
68 =head1 COPYRIGHT and LICENCE
70 Copyright 2007 David Cantrell
72 This module is free-as-in-speech software, and may be used, distributed,
73 and modified under the same conditions as perl itself.
77 This module is also free-as-in-mason software.