Problems? Is your data what you think it is? | |
PerlMonks |
UI::Dialog fselectby stangoesagain (Acolyte) |
on Apr 21, 2016 at 06:57 UTC ( [id://1161064]=perlquestion: print w/replies, xml ) | Need Help?? |
stangoesagain has asked for the wisdom of the Perl Monks concerning the following question: I'm using UI::Dialog to select a file for processing. When I get to this point:
The selected file name prints to the terminal but $fileIn in say "Selected: $fileIn"; line is empty. I swear it worked just a few months ago when I first created this script. If I initialize $fileIn first and assign it some value, "test", for example, fselect still makes it empty again. What gives? Is it something system related? I got it working with Tk but Tk doesn't look as nice as KDE's native file selection dialog. UPDATE: As a workaround I used Capture::Tiny, put fselect into a sub, and chomped the return.
Back to
Seekers of Perl Wisdom
|
|