Re: Help with input streams

2003-02-01 Thread R. Joseph Newton
Jason Wozniak wrote: > while (<>) { > @files = ; > } Hi Jason, the <> operator loads $_, and moves the file pointer to the next line. That's why you miss the first line in your progam when it is overwritten by . Instead, try: while (<>) { push(@files, $_); } Joseph -- To

Re: Help with input streams

2003-02-01 Thread Rob Dixon
Jason Wozniak wrote: >> >> I am trying to put together a search and replace program that I can >> string together with typical unix shell commands like find, and >> grep. However, I can't get past the initial read of the files I >> want to process, using the diamond operator. I lose the first >>