Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

This was inspired as a solution to both the (at the time) current poll topic and to a conversation regarding cold winter weather in the CB this (local) morning, involving sporty, castaway, katgirl, myself, and others (to whom I owe thanks for the inspiration-especially castaway for reminding me about needing to get supplies ahead of time).

my $setting = $apt; if ($outside->temperature <= $chilly) { $setting += $Heating; $setting += $Blanket; } $setting += $Bar if ($Bar->likeOccasionalDrink); $lover->invite(); if ($lover->arrives()) { $setting += $lover; if ($outside->temperature <= $chilly) { $cares->who = 'not me'; } lover->snuggleWith(); while ($evening or $night or $morning or $goodtime) { $lover->hold("Close"); $lover->let_go = "never"; } } BEGIN { use vars qw($have_music); eval { require Lover; }; warn "What's the point?\n" if ($@); use Bar; use Fridge; use Heating; use Heating::Blankets; eval { use Music; }; my $have_music = ( $@ ? 1 : 0 ); my $Heating = Heating->current(); my $Blanket = Heating::Blanket->current(); my $Fridge = Fridge->current(); my $Bar = Bar->current(); if ($have_music) { my $Music = Music->current(); } my $lover = Lover->current(); $Heating->getFuel() if (($Heating->checkFuelLevel()) and ($Heating->type ne $Heating->Electric)); if (($Fridge->checkFrigeForContents() < $Fridge->Normal) or (($Bar->likeOccasionalDrink) and ($Bar->checkBarForContents() < $Bar->Normal)) or ($Music->selection ne 'Appropriate') or ($Blanket->checkCount < $Blanket->Enough)) { wrapUpWarm(); goShopping(); } doLaundry() if ($Blanket->status ne 'Clean'); }

(And yes, there may be a warning of a bareword in the code, but it might be preferred that way-that would be between you and them. And the idea was mainly to take one's mind off the weather.... ;)


In reply to A potential solution to a chill winter's eve.... by atcroft

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
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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 drinking their drinks and smoking their pipes about the Monastery: (10)
    As of 2015-07-07 20:50 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (93 votes), past polls