map() normally returns a list. However, if the result is being assigned to a scalar, it returns a count. See perldoc -f map
In reply to Re: Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.
by fglock
in thread Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.
by olivierp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |