in reply to about the application of arrow operator
Don't use $a and $b as variables. They have special use in certain situations.