Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: The Chomp Idea.

by $Variable_B (Initiate)
on Oct 05, 2002 at 01:45 UTC ( [id://202964]=note: print w/replies, xml ) Need Help??


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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Re: The Chomp Idea.
by Abstraction (Friar) on Oct 05, 2002 at 01:54 UTC
    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
    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://202964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found