Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: The Chomp Idea.

by $Variable_B (Initiate)
on Oct 05, 2002 at 01:45 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-06-29 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (94 votes). Check out past polls.

    Notices?