in reply to Re: Syntax for 1 line "either this or this"
in thread Syntax for 1 line "either this or this"
Above example ought to be qualified w/ a statement similar to "To set a default value if $somevalue is false, use this ...".
I discovered that i need to set default iff a given value is undefined, not false. Thankfully, perl 6 will make it to take care of that just as easily -- search for "It's a setup" -- as the above example w/ help of // operator.
Change, May 30 2003: Removed "binary" from the last sentence describing the behaviour of //. The operator is listed being binary in the referenced portion ("It's a setup") of Exegesis 3, but as an unary operator at the end of the article.
|
|---|