in reply to Re: NET::SMTP
in thread Not hard-code text with NET::SMTP ?

No one took the bait, so I will :)

What would be a more efficient way of doing it?

Replies are listed 'Best First'.
Re: NET::SMTP
by Abigail-II (Bishop) on Aug 11, 2003 at 21:15 UTC
    One way of doing it more efficiently:
    while ($newline = <HANDLE>) {}

    It's very inefficient to first read in all the lines into an array, and then setting $newline to each entry of the array, ending at the last.

    If the file is big, you might want to read backwards from the end.

    Abigail