|
I too found that this book, first edition Jan 1999, suffers a number of errors. In addition, not nearly enough examples were provided. If the author had created such examples perhaps she would have discovered some of errors in her presentation of Tk with Perl. I am using Perl 5.005_03, build 518 on Windows NT 4.0 with Tk 800.015. On my system, the description in the book of the xview & yview commands do not match my installed programs. For example: xviewSroll( 1, "units"); in the book is implemented as xview( "scroll", 1, "units"); The same is true of the xviewMoveto and yviewMoveto. In addition, the functions described under Selection methods do not correspond to my implementation. selectionSet(0); should be selection( 'set, 0 ); The same is true of the remaining selection args. I am a fan of O'Reilly and own a number of their books. Usually they do a good job. To me it looks like Nancy Walsh got her information about Tk from the same source as Stephen Lidie the author of the Perl/Tk Pocket Reference also from O'Reilly. It too has the same errors about xview, yview, and selection. It seems that a number of function arguments are being appended to the function names. I'm sure there are others yet to be discovered. On the other hand, O'Reilly's book "Perl in a Nutshell" gets it right. Perhaps Stephen and Nancy should have a meeting with Ellen, Stephen and Nathan (authors of the Nutshell book).
|