Re: removing spaces from a file

2001-09-14 Thread Jeff 'japhy/Marillion' Pinyan
On Sep 14, John_Kennedy said: >print oBOTH "@UNLOCKED\n"; > >How can I prevent the blank lines from the grep or how can I remove the >blank lines from @UNLOCKED? This was a recently-added question to the FAQ (in perlfaq5, under the title "Why do I get weird spaces when I print an array of lines?

removing spaces from a file

2001-09-14 Thread John_Kennedy
I have a script that creates a file using the grep utility against a "master" file. The new file looks like the master file was copied over and where the grep "failed" there is a blank line. The grep line looks like this: @UNLOCKED = grep(!/LOCKED/g, "@SAME\n"); print oBOTH "@UNLOCKED\n"; with