in reply to Re: Print on closed filehandle
in thread Print on closed filehandle

He's using the two-arg form of open. You're thinking of the three-arg form, which is usually a better idea.

Replies are listed 'Best First'.
Re^3: Print on closed filehandle
by hsinclai (Deacon) on Jul 15, 2004 at 19:03 UTC
    I must admit, aside from making an ass of myself :), I've never seen open with a dot concatting the elements... either the 3 arg form or the standard open(OUT,"<$something")..

    I will now log off, shut down all the computers, and read many books. See you after the elections sometime.
      I've never seen open with a dot concatting the elements

      That's probably because it's a slightly silly thing to do. Especially when the < is already enclosed in double quotes. Quotes do interpolation, so there's no reason for an explicit concatenation.