Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
I never wanted to be a cheese coder! I wanted to be a lumberjack....

#!/usr/perl/bin use Quantum::Superposition; my $shop =cheese_shop->new; my $customer = cheese_shop->new; if ( $customer->esuriant(bazouki) && $customer->terpsichorean(love) ){ if ( $shop->stock('red Leicester') ) { push $customer{shopping_cart}, 'red Leicester'); } else { if ( $shop->stock('Caerphilly') ) { push $customer{shopping_cart}, 'Caephilly'; } else { # about this point I got bored with the idea if ( $shop->stock(any('Bel Paese','Red Windsor','Stilton','Ementh +al','Gruyere','Norweigan Jarlsburg','Lipta','Lancashire','White Stilt +on','Danish Brew','Double Goucester','Cheshire','Dorset Bluveny','Bri +e, Roquefort','Pol le Veq','Port Salut','Savoy Aire','Saint Paulin',' +Carrier de lest','Bres Bleu','Bruson','Camenbert','Gouda','Edam','Cas +e Ness','Smoked Austrian','Wensleydale','Gorgonzola','I can't believe + how many cheeses Monty Python know about','Parmesan','Mozarella','Pa +per Cramer','Danish Bimbo','Toe Cheese','Czech sheep's milk','Venezue +lan Beaver Cheese','Cheddar','Illchester, the most popular cheese rou +nd here','Limburger'))) { print "Congratulations, you have discovered the hidden flaw in th +is program!" && die "Horribly"; } else { kill('owner'); }}}}
The really amazing thing is probably this page.

____________________
Jeremy
I didn't believe in evil until I dated it.


In reply to Re: Cheese by jepri
in thread Cheese by Anonymous Monk

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.