
mhx
Enthusiast
/ Moderator
Oct 25, 2001, 5:02 AM
Post #2 of 4
(281 views)
|
So, what do you exactly mean by capture? If you mean putting the file on your disk then it's even simpler:
#!/bin/perl -w use LWP::Simple; print get shift; Save this as getpic.pl and use the script like:
getpic.pl http://path.to/pic.jpg >local.jpg If you use Windows, you'll have to set standard output to binary mode:
#!/bin/perl -w use LWP::Simple; binmode STDOUT; print get shift; Hope this helps. -- Marcus
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= ($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"
|