in reply to open windows explorer and select file for processing

Cross posted at StackOverflow. When you cross-post on numerous sites, please let all sites know you're doing so, as to not waste people's time working on a solution when one could already be located somewhere else.

Here's a very simple example from my SO answer. It requires only a single use statement (you'll have to install Tk first, of course), and one line of code. It's also cross-platform:

use warnings; use strict; use Tk; my $file = Tk::MainWindow->new->getOpenFile; print "selected file: $file\n\n"; open my $fh, '<', $file or die $!; while (<$fh>){ print; }

Replies are listed 'Best First'.
Re^2: open windows explorer and select file for processing
by Marshall (Canon) on Jul 06, 2016 at 18:17 UTC
    I posted a more involved Tk starter script at the original node, Re: select input file from windows explorer that shows the file type options.

    At least with Active State, Tk comes with the distribution, so there is nothing to install. There are about 280 modules that shipped with the distribution I'm currently using, Perl 5.20.

      I saw that Marshall, but not until I had this post done. I figured that since it didn't appear they were using any GUI and this seemed to be the only UI feature they needed, it'd do it.

      It's nice that you posted a full-blown example though, for sure.

      Perhaps I'll consider all of the nodes under the anonymonk posting to be re-parented up here.