I just wrote a script to parse and find URIs from given text file and download those files to my local computer. The problem is that i would rather let my self choose to download or not if the remote file is bigger than i thought.
So, let's say there's a remote image file as big as 20MB and the uri to this file is http://www.boo.net/images/image.jpg. Now, before my script starts to download this file with LWP::simple, i want it to find out the file size and notify me if the size is, let's say, bigger than 2MB.