in reply to Re^2: Modern Perl: The Book: The Draft
in thread Modern Perl: The Book: The Draft
Could it be that you and Anonymous Monk made the same mistake as I did initially of reading the example as if age() was meant as a read-only function?
As I understand the example, age() is a write-only(!) function, you set the time you want to stow away the cheese in a dark cellar (or you simply stow away the cheese a predetermined time). The following sentence in the book makes that quite clear I think. So 'ascertain' would be exactly the wrong meaning, suggesting reading of a stored value.
If I'm right, you made my point ;-). And in any case thanks for the compliment.
PS: If I'm right, the second age() call in the example following the cheese paragraph should have a parameter of "6", "6m" or "6 months"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Modern Perl: The Book: The Draft
by ww (Archbishop) on Jul 07, 2010 at 01:37 UTC | |
by Anonymous Monk on Jul 07, 2010 at 02:04 UTC | |
by ww (Archbishop) on Jul 07, 2010 at 12:27 UTC | |
Re^4: Modern Perl: The Book: The Draft
by Anonymous Monk on Jul 07, 2010 at 00:54 UTC |