lone5ive has asked for the wisdom of the Perl Monks concerning the following question:
I am a newbie to perl and am wrestling with the Image::Grab module. I have got it working fine to grab the images that i want but, I am trying to workout how to use the Date and MD5 options. Having read the info on CPAN, elsewhere and doing a super search here.. I am still none the wiser. Here is my code..
#!/usr/bin/perl -w use strict; use Image::Grab; my $image = new Image::Grab; $image->url('http://www.mysite.com/my.jpg'); $image->grab_new;
I can see that i can use $image->date to see the date info for the file, which is in epochtime. Do I compare this with my local time or am i completely barking up the wrong tree?
I would like to run script as a cronjob and only get the image if it has been updated. I have the MD5 module installed.
Any advice would be appreciated, i know i still have alot to learn grasshopper! :o)
Linux MDK9.0::Perl 5.8.0::Image::Grab 1.4
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: newbie quest for Image::Grab
by merlyn (Sage) on May 30, 2003 at 14:20 UTC | |
Re: newbie quest for Image::Grab
by wufnik (Friar) on May 30, 2003 at 12:29 UTC | |
Re: newbie quest for Image::Grab
by arthas (Hermit) on May 30, 2003 at 10:39 UTC | |
by lone5ive (Novice) on May 30, 2003 at 12:21 UTC | |
Re: newbie quest for Image::Grab
by acarvalh (Novice) on Jun 02, 2003 at 14:24 UTC |