in reply to Real World 1, Great Expectations 0

A style tip: use foreach instead of for. Also, you have an extraneous comma before the string.

foreach (@handles) { print $_ "Blah blah blah\n"; close $_; }

Replies are listed 'Best First'.
Re: Re: Real World 1, Great Expectations 0
by hsmyers (Canon) on Oct 18, 2001 at 04:34 UTC
    Thanks for the tip...however, that has nothing to do with the problem I am illustrating. As I said any technique (and there are a whole host of them) that reduces the reference to a simple scalar makes the problem go away. Work arounds are of course our friend, but that still doesn't explain why what should work doesn't. See prize winning answer below... Thanks

    hsm