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);
  • Comment on (Fixed) Re: unGodly problems with pop()

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