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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Well, I warned you that it was an intentionally ambiguous question. My answers are from what the source considers different ways to start a scope, because I was playing around with that sort of stuff recently.

So, so far we've got three correct answers. `eval STRING', a block, and a loop. Remember that `do' and `require' are really special cases of `eval STRING'. And yes, the source does distinguish between a loop and a block.

There are four left which have yet to be named. I'll give you one more. This one is the last "easy" one, in that it's not completely surprising: `sub' starts a scope, and the source considers that different from a block.

So there are three more out there. These ones, especially two of them, are completely obscure ways to start scopes.

P.S. I too once knew the answer to the baseball question, but it's been too long. Base hit, walk, hit by pitch, dropped third strike, catcher's interference, fielder's choice, error. That's all I can think of, which is seven. My memory wants to say that a catcher's balk counts, but I think a catcher's balk has the same effect as a pitcher's balk. Hmm...

-dlc


In reply to (Partial answers to) Barstool Trivia by dchetlin
in thread Barstool Trivia by dchetlin

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

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found