in reply to Hidden Secrets of PERL

Not directly related to your question, $a and $b are not the best choices for variable names, as they are special.