examples/tainted
raw| 1 | #!/usr/local/bin/perl -T |
| 2 | |
| 3 | use Tk; |
| 4 | |
| 5 | print join(':',@INC),"\n"; |
| 6 | |
| 7 | my $command = shift; |
| 8 | |
| 9 | my $mw = MainWindow->new; |
| 10 | my $b = $mw->Button(-text => 'Quit', -command => [destroy => $mw]); |
| 11 | $b->pack; |
| 12 | my $b = $mw->Button(-text => 'Do It', -command => sub { unlink $command } ); |
| 13 | $b->pack; |
| 14 | |
| 15 | MainLoop; |
| 16 |