On Sat, Jun 17, 2006 at 09:46:25AM +1000, Matthew Palmer wrote: > > I guess there are some cases where it is more natural to say (in english), > > "do something unless condition", than, "if not condition do something". > > Is that the rationale behind the language feature? > > Yes, I'd say so. If programmers want to abuse it, I suppose that's their > lookout.
I think that's it; it's a suggestion as to the expected most common pathway through the code. &usualfunction() unless $somethingbad; I'm sure I've read Larry Wall's comments about this in more detail, but 'unless' is a little hard to google for. Perhaps in the Apocalypse talks there'd be something. I like it sorta. It can make the code read quite nicely. There's a bunch more control conditionals and control flow constructs you can read about in "man perlsyn" Matt _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders