Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I've taken the comments pointing out methods of getting around the apparent limits on multiple actions in a one-line if statement to heart and inserted a brief mention into the text of if variants. Rather than actually attempt to comprehensively list and explain them all, adding cruft to what may already be a too-bloated treatment of if statement variants, I have simply made brief mention of the fact and left it at that.

I think it would be helpful and useful, and generally a good idea, if someone were to create a new node on the topic of such exceptions to that limitation of one-line conditionals. If the author of such a thing messages me after creating that node, I'll have a look at it and consider linking to it from the text of this node (assuming it's sufficiently relevant and clearly written).

Or, I might write it myself if nobody else does, eventually. I'm not a Perl guru, however, and that might be some time in coming.

- apotheon
CopyWrite Chad Perrin

In reply to Re: if variants by apotheon
in thread if variants by apotheon

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 contemplating the Monastery: (4)
As of 2024-03-28 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found