skywalker has asked for the wisdom of the Perl Monks concerning the following question:
I am running Active State 5.8 on Win XP thanks: Skywalkeruse Tk; use strict; my $mw = new MainWindow(); &getfile; MainLoop(); sub getfile{ my $filename = $mw->getOpenFile(); if(-f $filename){ open (FILE,"<",$filename) || die "unable to open $filename $!\n"; close (FILE); die "FILE OPENED -> $filename\n"; }else{ die $!; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: opening files with tk getOpenFile
by Marshall (Canon) on May 08, 2009 at 14:45 UTC | |
|
Re: opening files with tk getOpenFile
by zentara (Cardinal) on May 08, 2009 at 17:20 UTC | |
|
Re: opening files with tk getOpenFile
by John M. Dlugosz (Monsignor) on May 09, 2009 at 00:17 UTC | |
by skywalker (Beadle) on May 11, 2009 at 15:29 UTC |