tanger has asked for the wisdom of the Perl Monks concerning the following question:
my $image_name = "heybuddy.jpg"; my $image_full = "/home/temp/$image_name"; #image full path to the tem +p file my $status = getstore($video_src, $image_full); #uses getstore to retr +ieve image and to be stored in the temp path. die "Error $status on $video_src" unless is_success($status);
open(IN, ">/home/images/$image_name") or die "Can't open: $!"; + binmode IN; while (<$image_full>) { print IN; } close IN or die "Can't close: $!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP Simple - getstore function
by BrowserUk (Patriarch) on Oct 31, 2004 at 05:38 UTC | |
|
Re: LWP Simple - getstore function
by bart (Canon) on Oct 31, 2004 at 07:08 UTC | |
by tanger (Scribe) on Oct 31, 2004 at 07:19 UTC | |
by bart (Canon) on Oct 31, 2004 at 07:21 UTC | |
|
Re: LWP Simple - getstore function
by Zaxo (Archbishop) on Oct 31, 2004 at 05:32 UTC | |
by tanger (Scribe) on Oct 31, 2004 at 05:53 UTC | |
|
Re: LWP Simple - getstore function
by Cody Pendant (Prior) on Oct 31, 2004 at 10:19 UTC | |
|
Re: LWP Simple - getstore function
by allyc (Scribe) on Oct 31, 2004 at 13:50 UTC | |
by tanger (Scribe) on Oct 31, 2004 at 16:57 UTC |