Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
This is my first CUFP. (You have to do something when you get bored at work..) If you have any suggestions, I'm sure you do, feel free. This is sure to be a hit with Sys Admins and BOfH lovers alike. To come in future releases...:

- Automated web-based tech support
- and Bulk-Eraser function:

print "You would like more space?";
print "What did you say your username was? ";
while (<>) {
     rm -rf /home/$_
}
print "You should have plenty of space now!";

BOfH.pl:

#!/usr/bin/perl -w ############################################ # BOfH Random Excuse Generator # Word list from the BOfH Excuse board # [http://bofh.ntk.net/ExcuseBoard.html] # Copyright 2001, Simon Travaglia # # BOfH stories @ : # http://www.theregister.co.uk/content/30 # and http://bofh.ntk.net/Bastard.html # # # perl by mexnix [http://mexnix.perlmonk.org ############################################ use strict; my @words1 = qw(Temporary Intermittant Partial Redundant Total Multiplexed Inherent Duplicated Dual-Homed Synchronous Bidirectional Serial Asynchronous Multiple Replicated Non-Replicated Unregistered Non-Specific Generic Migrated Localised Resignalled Dereferenced Nullified Aborted Serious Minor Major Extraneous Illegal Insufficient Viral Unsupported Outmoded Legacy Permanent Invalid Deprecated Virtual Unreportable Undetermined Undiagnosable Unfiltered Static Dynamic Delayed Immediate Nonfatal Fatal Non-Valid Unvalidated Non-Static Unreplicatable Non-Serious); my @words2 = qw(Array Systems Hardware Software Firmware Backplane Logic-Subsystem Integrity Subsystem Memory Comms Integrity Checksum Protocol Parity Bus Timing Synchronisation Topology Transmission Reception Stack Framing Code Programming Peripheral Environmental Loading Operation Parameter Syntax Initialisation Execution Resource Encryption Decryption File Precondition Authentication Paging Swapfile Service Gateway Request Proxy Media Registry Configuration Metadata Streaming Retrieval Installation Library Handler); my @words3 = qw(Interruption Destabilisation Destruction Desynchronisation Failure Dereferencing Overflow Underflow NMI Interrupt Corruption Anomoly Seizure Override Reclock Rejection Invalidation Halt Exhaustion Infection Incompatibility Timeout Expiry Unavailability Bug Condition Crash Dump Crashdump Stackdump Problem Lockout); # Optional 4th word my @words4 = qw(Error Problem Warning Signal Flag); my $word1 = $words1[rand(scalar(@words1))]; my $word2 = $words2[rand(scalar(@words2))]; my $word3 = $words3[rand(scalar(@words3))]; my $word4 = $words4[rand(scalar(@words4))]; print "\n##############################\n"; print "#BOfH Random Excuse Generator#\n"; print "##############################\n\n"; print "Today's excuse: "; print "$word1 $word2 $word3\n\n"; print "Use Optional 4th Word?\n"; print "(Answer \"yes\" if DUMMYMODE == ON) [yes/no]"; while (<>) { if ($_ eq /yes/ or /y.*/) { print "\n$word1 $word2 $word3 $word4\n"; exit; } else { exit; } }

my %mexnix = (email => "mexnix@hotmail.com", website => "http://mexnix.perlmonk.org");


In reply to BOfH Random Excuse Generator by mexnix

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (7)
    As of 2014-12-27 15:23 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (177 votes), past polls