... be careful not to follow the print keyword with a left parenthesis unless you want the corresponding right parenthesis to terminate the arguments to the print; put parentheses around all the arguments (or interpose a "+", but that doesn't look as good).
So - the "print" is consuming the first open paren, leaving the square brackets hanging.This is not an optical illusion, it just looks like one.
In reply to Re: List vs array printing in perl
by NetWallah
in thread List vs array printing in perl
by raghuprasad241
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |