in reply to Issue with POP in array ref.

Could it simply be that this doesn't have 5 elements? i.e. there's nothing at $arr[4]

[ "Name", "Add", "Date", "email", ],