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
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
>>