Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
At first I thought this would be an addition to the PerlMonks quotes node, but then I realized there was too much context. So here it is, the chatterbox conversation that demonstrates one of the virtues of a Perl Monk... a sense of humor:


OzzyOsbourne What happens if I set an array to a scalar?
jcwren Usually, you'll get the count of elements in the array, if you mean $scalar = @array
gaspodethewonderdog I believe you get the size of the array in the scalar
Fastolfe your computer explodes
Fastolfe I think he means @array = $scalar
OzzyOsbourne Crud. that's what I meant
jcwren Oh, right. Yes, you computer explodes
Fastolfe which would be equiv to @array = ($scalar)
myocom It's best to do that on someone else's computer.
Fastolfe oh ok, well your computer will be fine in that case
Fastolfe but for god's sake don't reverse it.. that's why we do 'perl -cw script.pl' to check it before we run it
Fastolfe and of course 'use strict' would catch it and let you know that your computer would explode at compile-time
myocom Though, just for the sake of providing an actual answer, you get an array with one element


In reply to PerlMonks Humor by Adam

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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2023-01-28 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?