Tk is a way to build GUI's. There is definitely a learning curve to this critter! Here is a short hack that implements the standard "File" options of Open,Save,Close,Exit. See the command window for the print output of what it does. If you are using a recent version of Perl, Tk comes with the distribution and this should run without having to install anything.
#!usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new; #$mw->geometry("1000x400+0+0"); my $menu_f = $mw->Frame()->pack(-side=>'top',-fill=>'x'); my $menu_file = $menu_f->Menubutton (-text=>'File',-tearoff=>'false') ->pack(-side=>'left'); $menu_file->command(-label=>'Open', -command=> \&open_log); $menu_file->command(-label=>'Save', -command=> sub {print "in Save\n";}); $menu_file->command(-label=>'Close', -command=> sub {print "in Close\n";}); $menu_file->command(-label=>'Exit',-command=>\&exit_msg); sub open_log { my @types = (["log files", [qw/ .log/]], ["All files", '*'], ); my $file = $mw->getOpenFile(-filetypes => \@types) or return; print "$file\n"; ######## ### call worker program here ########## } sub exit_msg{ my $response = $mw->messageBox( -title => "some title", -message => "Do you really want to exit?\nAll unsaved work will +be lost!\n\n", -type => 'YesNoCancel'); print "exit_msg response = $response\n"; exit() if ($response =~ /^yes$/i); } MainLoop;
Update: I guess going this route is more than what you need. But FYI, such things are possible in Perl!

In reply to Re: select input file from windows explorer by Marshall
in thread open windows explorer and select file for processing by viennese_finger

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.