Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(Fixed) Re: unGodly problems with pop()

by Anonymous Monk
on Jul 13, 2001 at 06:57 UTC ( [id://96270]=note: print w/replies, xml ) Need Help??


in reply to unGodly problems with pop()

goddamn you guys are too useful! There was a \r (return) and \n (newline) at the end of $rest.. imagine that! I chop'ed it and did a /\r/ thingide.. and whop-de-doo, it worked! thanks(100000000000000000);

Replies are listed 'Best First'.
Re: (Fixed) Re: unGodly problems with pop()
by dragonchild (Archbishop) on Jul 13, 2001 at 16:23 UTC
    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.
Re: (Fixed) Re: unGodly problems with pop()
by particle (Vicar) on Jul 13, 2001 at 18:21 UTC
    also, realize your script will break on passwords with spaces... so be careful!

    ~Particle

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found