The perl code will produce the same hash for "abc.html" as for
"bca.html"
In any case, the likelihood of a hash collision for any non-trivial
website is substantial. If you hash 100 files you
have about a 40% chance of a collision.
If you hash 220 files, the likelihood is about 90%