in reply to Error/Warnings

You are using $temp before it is initialized. That is, $temp is concatenated with $_ and assigned to $temp. However, at first run, $temp is uninitialized.
Try a $temp = ""; like SparkyG stated.

Jeremy

Replies are listed 'Best First'.
Re: Re: Error/Warnings
by PsychoSpunk (Hermit) on Feb 24, 2001 at 01:43 UTC
    What about the line:
    my $temp;
    ???

    Update: the noted line above does indeed cover initialization with -w.

    I just cut'n'pasted the code above from pdaggett and short of having to add a filehandle in the while control, it worked on one of my files.

    Now, we just need some clarification on the sentence "How would I write this to not show warnings in the Log?"

    ALL HAIL BRAK!!!