Your code snippet pops up a dialog box in Perl/Tk, asking the user to select a file. If a file is selected and the "OK" button is pressed, the path to the selected file comes back in $foo. Is that what you want?
Comment on Re: getOpenFile() returns empty string for TrueType font path
Yes, that is exactly what I want...the file path in $foo. But on Win2K that does not happen. When I click on OK, or double-click the TTF file who's path I desire, I get instead a window of the glyphs in the font. And the string $foo remains empty. Somehow the normal behavior of getOpenFile() seems to have been diverted.