in reply to getSaveFile problems in Tk
So you have to do this:
sub save { @types = (["Text files", [qw/.txt .doc/]], ["All files", '*' ]); my $file = $mw->getSaveFile( -initialfile => $save_file, -defaultextension => '.txt', -filetypes => \@types); open OUTFILE, ">$file"; print OUTFILE "whatever you want to save in that file"; close OUTFILE; &exit; }
Please try to name your sub's in lower letters. UPPER letters normaly used for Filehandles ..
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|