in reply to Re: Where is if...elsif...else documented in perldoc?
in thread Where is if...elsif...else documented in perldoc?
An example might be nice!
The example that follows the section you cited uses neither else nor elsif. In fact there are no examples using either else or elsif in the document. As for the discussion, it addresses a language design issue (ambiguity) not a usage issue.
Only the most sophisticated readers can comfortably and confidently translate syntax synopsi into working code. That is not something I really felt comfortable doing until I had at least reading knowlege of about 6 different computer languages and studied compilers. I admit that others are probably quicker on the draw than I am, but I think converting syntax descriptions into code without the help of examples is a bit much to ask your average Perl learner.
Unless we are saying that perldoc is only meant for CS majors and self-taught equivalents. Considering that perldoc contains things like perlreftut and perlretut and perltoot, I would hope that perldoc is trying to go beyond internal language discussions.
To quote something BrowserUk said a few months ago when we were discussing new monkquips:
Don't forget you've probably already forgotten, how hard it was to learn what you now take for granted.
The point of this place is not: to force newbies to go through the same pain you had to go through.
Re: I want more monkquips
Best, beth
Update: Many thanks to anonymous below - wish I could upvote a real person. However, having the example far removed from the main place to look for documentation of syntax seems not as helpful as it could be. I didn't consider even looking there because I generally consider that too high level to be of much help. Live and learn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Where is if...elsif...else documented in perldoc?
by BrowserUk (Patriarch) on Jun 26, 2009 at 08:29 UTC | |
|
Re^3: Where is if...elsif...else documented in perldoc?
by Anonymous Monk on Jun 26, 2009 at 06:03 UTC | |
|
Re^3: Where is if...elsif...else documented in perldoc?
by ambrus (Abbot) on Jun 26, 2009 at 07:30 UTC |