This code will not print 30 as there is ambiguity in the print statement. It treats $a as file handle and + before the $b as prefix operator and tries to print $b to $a.$a = 10; $b = 20; print $a +$b;
In reply to Hidden Secrets of PERL by perl_lover
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |