Muskovitz has asked for the wisdom of the Perl Monks concerning the following question:
hey guys i am trying to fetch an IMAGE using URL in Perl/tk but it cant read it heres my line of code.
use Tk; require Tk::Photo; require Tk::JPEG; my $mw=new MainWindow; my $image="http://example.com/background.jpg"; my $shot=$mw->Photo(-file=>"$image",-format=>'jpeg'); $mw->Label(-image=>$shot)->pack; MainLoop;
FAILED! but if you remove the link, cool! Not to mention i am new here!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to fetch image via URL Perl/Tk
by Loops (Curate) on Nov 19, 2014 at 17:53 UTC | |
|
Re: Trying to fetch image via URL Perl/Tk
by jellisii2 (Hermit) on Nov 19, 2014 at 12:54 UTC | |
by Muskovitz (Scribe) on Nov 19, 2014 at 13:00 UTC | |
by ww (Archbishop) on Nov 19, 2014 at 13:36 UTC |