- or download this
$dst ||= "$0.edit"; #in case user hits cancel
warn "dst=$dst";
open (my $fh, '>',$dst) or die "$!\n";
print $fh $sublable->get("1.0","end");
- or download this
my $fh;
open( $fh, '+<', "./test.txt" ) or die $!;
my @contents = <$fh>;
# print "@contents\n";
close( $fh );
- or download this
my $dst = $mw->getSaveFile(
-initialdir => $ENV{HOME},
...
[ 'All files' => '*' ],
],
);