Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: chop and chomp

by ikegami (Patriarch)
on Mar 17, 2009 at 13:46 UTC ( #751192=note: print w/replies, xml ) Need Help??


in reply to chop and chomp

chop removes the last character of each argument.

chomp removes the last character(s) of each argument if they're equal to the value of $/.

chomp is useful in combination with <$fh> because <$fh> reads until the value of $/ or eof is found.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2023-01-28 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?