If you dont understand a block of code, just simplify it to the maximum extent possible.
break that complex statement into relevant simpler statements, and try to understand that with help of the occean of documentation that perl has here
Perl documentation.
Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.