Help for this page

Select Code to Download


  1. 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");
    
  2. or download this
       my $fh;
       open( $fh, '+<', "./test.txt" ) or die $!;
       my @contents = <$fh>;
    #   print "@contents\n";
       close( $fh );
    
  3. or download this
                my $dst  = $mw->getSaveFile(
                -initialdir       => $ENV{HOME},
    ...
                    [ 'All files' => '*'    ],
                ],
                );