http://www.perlmonks.org?node_id=184836


in reply to Re: uploading a file with the same name
in thread uploading a file with the same name

$num=1; $imagename=$imagename. ++$num while -s "$Data/$category/$imagename";
Perhaps consider using an MD5 Sum to see if the files are the same too, to negate duplicate uploads ;)

--

Brother Frankus.

¤