Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Chomp is removing the whole word instead of the newline

by Ratazong (Prior)
on Jul 25, 2012 at 09:34 UTC ( #983590=note: print w/ replies, xml ) Need Help??


in reply to Chomp is removing the whole word instead of the newline

From the docs:

It (chomp) returns the total number of characters removed from all its arguments

So   my $var = chomp ($row[1]);   is not doing what you expect it to do.

Rata


Comment on Re: Chomp is removing the whole word instead of the newline
Download Code
Re^2: Chomp is removing the whole word instead of the newline
by slayedbylucifer (Scribe) on Jul 25, 2012 at 09:51 UTC
    You know what, i did read exact same line in the documentation but I think i did not interpret it correctly. thanks for your time.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-29 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls