Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: if variants

by apotheon (Deacon)
on Oct 19, 2004 at 18:17 UTC ( [id://400611]=note: print w/replies, xml ) Need Help??


in reply to if variants

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

Replies are listed 'Best First'.
Re^2: if variants
by castaway (Parson) on Oct 20, 2004 at 08:44 UTC
    Im not sure having a heap of little snippets of info is really useful here. Probably better to integrate such suggestions into your text, especially if it was meant as a Tutorial. (Was it, if so please indicate somewhere, so we can link it on the Tutorials page).

    It's ok to post a work in progress, have people comment, suggest additions, and then update. That way, the info is all in one page, and not scattered around in several.

    C.

      I'm already in the business of adding appendices to this node, apparently, so I'll add another on the subject of adding more actions to a single-line if statement. Thanks for the advice.

      If if variants is thought to be worth linking amongst the site's tutorials, I'd be happy to see it there.

      - apotheon
      CopyWrite Chad Perrin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://400611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found