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

Re: Re: Re: The Chomp Idea.

by Abstraction (Friar)
on Oct 05, 2002 at 01:54 UTC ( [id://202967]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: The Chomp Idea.
in thread The Chomp Idea.

Oh, so it basically takes the new line off something?
Basically...yes.

If you change $/ to something other then the new line, it will chomp that insead.

chomp needs an argument, unless you want to chomp $_
#!/usr/bin/perl my $greeting = "Hello World\n"; chomp $greeting; print $greeting

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found