in reply to Re: Bulk Mail
in thread Bulk Mail

foreach (<LIST>) ==> this is a bad idea (and bad practice)...

This is what happens if you use it: first a temporary list is created, and that list will be passed to foreach. This means you are first reading the entire file, it would be much better to read it line by line...

(Which you can do by using something like while (<LIST>)...)

(Update, typo)

Replies are listed 'Best First'.
Re^3: Bulk Mail
by ghenry (Vicar) on May 04, 2005 at 11:10 UTC

    Yes of course. Thanks for the advice.

    I'll update it.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!