Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
It is not an entirely uncommon practice in the CB to have discussions about the fact that the morning is not the most pleasant of times for some monks. This fact having been established it's not unsurprising when blunders occur and there is subsequent application of caffeine to said monk e.g

broquaint goes off for caffeine after realising that he was working on the wrong file for the past 3hrs

However for some reason or another after having mistaken ascendance for ascension when congratulating the ever-wonderful virtualsue on achieving pontiff-hood I idly remarked

<broquaint>
hmmm, that should be ascension (ascendance means something else entirely). cat /dev/caffiene > broquaint

Now that I had publicly demonstrated how everyone can acquire caffiene through their favourite command-line editor there was a request from Sinister for some caffiene of his own which lead to

<broquaint>
foreach my $monk (grep /wants caffiene/, @monks) { system("cat /dev/caffiene > $monk &") }

However demerphq was disapproving of this lacklustre solution and came up with

<demerphq>
tsk tsk, broquaint that's sooo inefficient ;-) /wants caffne/ && system "cat /dev/caffiene > $_ &" foreach @monks;

Which lead to further and more varied solutions[1] from fellow monks who too were concerned that each monk got their desired portion of caffeine

<rob_au>
broquaint, demerphq - that still won't work where a monk has a space in their nick - try ... /wants caffiene/ && system('cat', '/dev/caffiene', '>' . $_, '&') for @monks
Sinister thinks :
$monks{$_}->{caffeine}++ foreach(keys %monks);
<demerphq>
bah! $_->drinks(Hot::Beveridge->new(type=>'coffee',quality=>'high', origin=>'Jamaica', region=>'Blue Mountain')) foreach @monks ;-)
<Dog and Pony>
$monk->pour_coffee() while($monk->tired());
<broquaint>
system schmystem - foreach $monk (@monks) { open($mouth, "|$monk"); print $mouth while <CAFFIENE>; }

So can anyone else come up with a more efficient/varied/effective caffeine delivery system for the poor morning monks who are mere shells of programmers without their fix?

_________
broquaint

[1] cb chatter editted for the sake of brevity


In reply to Caffeine and its delivery to monks in need by broquaint

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 making s'mores by the fire in the courtyard of the Monastery: (8)
    As of 2014-09-23 08:33 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (212 votes), past polls