Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: (Fixed) Re: unGodly problems with pop()

by dragonchild (Archbishop)
on Jul 13, 2001 at 16:23 UTC ( #96362=note: print w/replies, xml ) Need Help??


in reply to (Fixed) Re: unGodly problems with pop()
in thread unGodly problems with pop()

This is a bit of a quibble, but don't use chop to get rid of newlines like \r and \n. Use chomp instead. It'll only get rid of newlines at the end, not the last character. So, you can safely chomp anything without verifying that it indeed does have newlines at the end.
  • Comment on Re: (Fixed) Re: unGodly problems with pop()

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://96362]
help
Chatterbox?
[hippo]: Other package managers are available
LanX wouldn't update system Perl!
[Discipulus]: prathap keerthipati might be it is better to install an alternative Perl instead and do not touch the system one
[LanX]: see perlbrew for alternative Perl installations
[marto]: unless you know exactly what you're doing an often saner option is to simply build another Perl rather than replace the system one

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-03-23 10:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.