I need to find out an efficient way, in Perl , of knowing the file format looking at one link.
given the link 'link1' to file 'file1.jpg'. Looking at that link I need to know that the target file is in format jpg.
It has to be efficient because I will need to do it repeatedly and fast. I would prefer is the solution cames in default modules.