I am new to perl, however I have other programming experience in python and java from school.
I picked up "programming perl" book recently and while going through it encountered some thing like below.
It does not have much explanation as to what is happening under the hood.
To my eyes it looks like list on the right hand side is being assigned to empty list and are discarded. When I print $a its printing 5.