Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.

by fglock (Vicar)
on Dec 09, 2004 at 02:19 UTC ( [id://413405]=note: print w/replies, xml ) Need Help??


in reply to Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.

map() normally returns a list. However, if the result is being assigned to a scalar, it returns a count. See perldoc -f map

  • Comment on Re: Unexpected results when removing a HERE-DOC "ending" newline, with map and/or s/// depending on context.
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://413405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found