2009/9/11 John W. Krahn <jwkr...@shaw.ca>: > Philip Potter wrote: >> >> My point is that C documents its behaviour. It seems that Perl >> doesn't. > > man perl > perldoc perl > http://oreilly.com/catalog/9780596000271/ > http://perldoc.perl.org/ > perldoc -q "Is there an ISO or ANSI certified version of Perl"
Do any of them answer my question about "?:"? >> C's documentation is complete, > > C is a very small, simple language. If C can document ?: properly, why can't perl? The size of each language has nothing to do with this. >> Perl's is not. > > Define "complete". If Perl doesn't document ?: properly, its document is not complete. >> You can't tell everything about the language from the docs. > > Give me an example, I'll point you to the docs. (Have you read them all?) I thought I already had! The ?: ternary operator has a guarantee that it will *either* evaluate its second *or* its third operand. It won't ever evaluate both. Where is this statement in the docs? Can you find it? Can you tell me why it's not in perlop? >> Perl is doing things >> without telling you that it will. Don't you think that's a problem? > > perldoc warnings > perldoc strict > perldoc diagnostics > > If you are not using the tools that Perl provides then it can't help you. You still don't understand my issue. If you did, you would know that strict, warnings and diagnostics will not answer my question. None of them magically know if I want both or only one expressions evaluated. In case it isn't clear enough, my question (not directly to you, but to the perl maintainers) is "Where does perl document the ternary operator's behaviour of only evaluating either the second or the third argument, never both?" I have looked in perldoc perlop. If you have a better place for me to look, by all means let me know. But if it's not in perlop, why isn't it? Philip -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/