in reply to Extra (\n)'s in the file I'm updating?

This line will 'squash' any multiple \n characters into only one
$new_text =~ tr/\n//s;
Also, using $names[1] means your code relies on a very specific page layout of the elements to work.
poj

Replies are listed 'Best First'.
Re: Re: Extra (\n)'s in the file I'm updating?
by cdguitar01 (Monk) on Jan 11, 2003 at 19:01 UTC
    Thank you for the code, I've changed how I'm executing this application so I'm not sure it's going to apply anymore, but thanks anyways.

    Oh, and as for the $names[1] requiring very specific page layout, I know. It's ok for now because I'm the only person using the code, but I know I shouldn't do it this way. I've just been jumping ahead in my learning of Perl because I see different things I want to try. I just haven't learned the appropiate way of aquiring name/value pairs. Thats pretty high on the list of things to learn.

    Thanks,
    Chris (boston,USA)