http://qs1969.pair.com?node_id=202964


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.