Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: chop and chomp

by ikegami (Patriarch)
on Mar 17, 2009 at 13:46 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found