| 1 | package Acme::Fork::Bomb; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | our $VERSION = '2.0'; | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Acme::Fork::Bomb - crashes your program and probably your system | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | use Acme::Fork::Bomb; | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | B<WARNING:> Using this will crash your system. You have been warned. | ||
| 18 | |||
| 19 | Steps to use: | ||
| 20 | |||
| 21 | =over | ||
| 22 | |||
| 23 | =item 1 | ||
| 24 | |||
| 25 | Install. | ||
| 26 | |||
| 27 | =item 2 | ||
| 28 | |||
| 29 | Add C<use Acme::Fork::Bomb> to your program. | ||
| 30 | |||
| 31 | =item 3 | ||
| 32 | |||
| 33 | Run your program. | ||
| 34 | |||
| 35 | =item 4 | ||
| 36 | |||
| 37 | Reboot. | ||
| 38 | |||
| 39 | =back | ||
| 40 | |||
| 41 | =head1 METHODS | ||
| 42 | |||
| 43 | None. All you need is C<use Fork::Bomb>. You won't need anything else after | ||
| 44 | that. In fact, you probably won't be able to do anything else on your computer | ||
| 45 | after that. | ||
| 46 | |||
| 47 | =head1 SPECIAL THANKS | ||
| 48 | |||
| 49 | Special thanks to Michael Flickinger and Michael Aquilina and the staff and | ||
| 50 | sponsors of YAPC::NA 2012 for allowing us to meet together in the Expo Hall. | ||
| 51 | |||
| 52 | =head1 COPYRIGHT AND LICENSE | ||
| 53 | |||
| 54 | Copyright 2012 Sterling Hanenkamp. This software is available under the same | ||
| 55 | license as Perl itself. | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | sub import { | ||
| 60 | fork while (fork) or not fork; | ||
| 61 | } | ||
| 62 | |||
| 63 | 1; |