#!/usr/bin/perl -w use strict; use Tk; use Tk::JPEG; use LWP::Simple; my $URL = 'http://zentara.net/headsup.jpg'; my $localfile = $URL; $localfile =~ s![/:~]!!g; my $rc = mirror( $URL, $localfile ); my $mw = MainWindow->new(); my $file = $localfile; my $image = $mw->Photo(-file => $file); $mw->Label(-image => $image)->pack(-expand => 1, -fill => 'both'); $mw->Button(-text => 'Caught ya', -command => [destroy => $mw])->pack; MainLoop;
In reply to Re: Perl Jokes
by zentara
in thread Perl Jokes
by phydeauxarff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |