This one might be a very trivial to you, but sort of interesting to me. This two lines have the same effect, but I am not sure about the difference between these two kinds of syntax. Any idea?
Thanks.@vals = map($_*5, @vals); @vals = map{$_*5} @vals;
In reply to syntax of map operator by sman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |