Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Last Saturday, a few of the Silicon Valley monks (namely neshura, redmist, myself and my significant other) went playing pool. The way I'm used to playing pool back home is a bit different than the pool played in the US. (Even when Brazilians play slop, we are still much more strict than the American slop pool)

Some of these differences spawned the bizarre idea that there should be a counterpart for use strict. You know? For those who can't code even to save their lives? use slop would be the "miracle worker" for those days in which you really don't feel like checking syntax or being correct. use slop wouldn't warn you if anything went wrong, it would just let it slide and preferably ommit errors and just ignore the existance of STDERR, or even STDOUT at times! I mean, if you're really gonna get sloppy, why even check for output?

And now, for your nightmare of coding pleasure - I think we would go something like this:
#!perl # its not in your path?? use slop; # remember 'dis, Ma? require ''; # yes, its a typo REadParse(); # and who cares about string types? if ($in{user{ == BBQ and $in{password} == 'phooey') # or braces? # why indent? why print a content type? print $a_variable_thats_going_to_be_def_l8er ifelse # yeah, why not? warn 'it didn't work' # oops, should i have escaped that? # well, you get the idea return('foo');
Okay, it actually does't look as bad I thought it would, but maybe that's just because it actually looks like code a write every once in a while. use slop++

# Trust no1!

In reply to use slop; by BBQ

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.
Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2023-03-27 22:33 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (66 votes). Check out past polls.