in reply to Re^2: Determine target file format looking at one link
in thread Determine target file format looking at one link

I guess you're looking for readlink. A match for /\.jpe?g$/i should do the rest. However, if you cannot trust the suffix or if you are going for a more robust program, you should give the File::MMagic module a try.

Replies are listed 'Best First'.
Re^4: Determine target file format looking at one link
by shmf (Novice) on Jul 31, 2008 at 17:28 UTC
    Readlink just solved my problem. It was exactly what I was looking for. Thank you.