Re: Canvas's find returns a hash ref in scalar context ...
Nick Ing-Simmons <[email protected]>
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
Dominique Dumont <[email protected]> writes: >This is a behavior changes (may be related to Change 2850) which is >not documented in Canvas.pod (in Tk-804.027). > >Here's a patch for the doc: Applied. > >diff -Naur Tk-804.027.old/pod/Canvas.pod Tk-804.027/pod/Canvas.pod >--- Tk-804.027.old/pod/Canvas.pod 2004-02-28 17:19:37.000000000 +0100 >+++ Tk-804.027/pod/Canvas.pod 2004-10-14 14:19:24.000000000 +0200 >@@ -599,9 +599,9 @@ > > =item I<$canvas>-E<gt>B<find>(I<searchCommand, >?I<arg, arg, ...>?) > >-This method returns a list consisting of all the items that >+In array context, this method returns a list consisting of all the items that > meet the constraints specified by I<searchCommand> and >-I<arg>'s. >+I<arg>'s. In scalar context, this method returns the same informations in an array ref. > I<SearchCommand> and I<args> have any of the forms > accepted by the B<addtag> method. > The items are returned in stacking order, with the lowest item first. > > >Cheers -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected]