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
In reply to newbie quest for Image::Grab by lone5ive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |