Hi,
Which of the following is a typical way of writing Perl code?Is any one of them more "correct" than the other?print 1..10; print for (1..10); for (1..10) {print;}
Relatedly, is it more common to have a space between "for" and the open bracket "("?
Thanks in advance.
In reply to Question on syntax by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |