Answer:
The Perl code is attached in the attachment. The execution time for using hashes is 0 seconds while that for without hash is 27 seconds.
Explanation:
In terms of ease of access and readability, both approaches are similar. However, it is evident from the time of execution that the with hashes is more efficient than the value of without hashes. This indicates that using hashes is more efficient.