in reply to Re^2: Control Structure problem, mistake can't be found
in thread Control Structure problem, mistake can't be found
Yes, I can never correctly spell 'truly' (correction: I can seldom spell it). I am ashamed. What can I say: without the 'e' it just looks to me as if it's had an unfortunate accident with something sharp -- an object lesson in what happens when you run with scissors, perhaps ? It also looks almost as if it should be pronounced with a short 'u', but for that, I have to admit, two 'l's would be required -- as in 'cully'.
Of course many other words that end in 'e' don't drop it when the adverb is formed -- 'insanely', 'obscenely', 'approximately', 'effectively'. But that may be because they don't end in two vowels. So there's 'brusquely' and 'opaquely', but I guess the 'u' isn't really a vowel in this context. What about 'eerily', and of course 'duly' -- the later is clearly of a piece with 'truly'. But, lest we conclude there's a simple rule here, there's 'vaguely' and 'freely' -- admittedly the sound of the 'ue' in 'vague' is quite different from that in 'true', which may (or may not) be significant. Similarly, in the case of 'free' it may be that the 'ee' is effectively a compound vowel ?
English: what can I say ? Gosh, what a glorious mess !
Anyway, returning to what I suppose is the real matter: I think that to "really understand what Perl is doing" you do need some more formal grounding -- highlighting the stress I intended on the "really".
For instance, consider the following:
What do we think is going on here ?my @rows = () ; while (my $line = <SHEET>) { chomp($line) ; my @columns = split /\s+/, $line ; push @rows, \@columns ; } ;
Now, references are sophisticated, but just taking the code at face value, one might worry:
Scanning back over the above, I observe it's hard to describe what's really going on, without using some fairly heavy computer science concepts. IMO, the study of more formal language(s) is the way to gain understanding of these and how they work.
This is only one example, but I believe it illustrates a general point.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Control Structure problem, mistake can't be found
by TGI (Parson) on Aug 25, 2008 at 18:07 UTC | |
|
Re^4: Control Structure problem, mistake can't be found
by massa (Hermit) on Aug 26, 2008 at 01:51 UTC | |
by blazar (Canon) on Aug 26, 2008 at 13:27 UTC |