|There's more than one way to do things|
retrieving Tk::Photo's attributesby tos (Deacon)
|on Sep 26, 2003 at 11:49 UTC||Need Help??|
tos has asked for the wisdom of the Perl Monks concerning the following question:
for a little photo-sort-application, which i'm working on, i need to find out the filename of an selected image. The selection is done by left-mouse-click on the displayed photo (i took one from here). Here an fully functional excerpt
On mouse-click the items-drag-subroutine tells me that $af is an reference on an anonymous hash with confession Tk::Photo, ...
...but that's all. I assumed that Data::Dumper would show me a nice nested datastructure which contains the filename amongst other attributes.
Can anybody show me how to retrieve the desired attribute-value or perhaps show me my logical flaw.