Be that as it may, you either use autodie or explicitly check for the return of the open function in case it fails. The same goes for close and closedir.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me