in reply to telling script to read from next line

@stuff = <FILE>;

Replies are listed 'Best First'.
Re: Re: telling script to read from next line
by tomhukins (Curate) on Jul 08, 2001 at 15:33 UTC

    If you're working with large files, this is a bad idea, as the whole file will be read into memory. As others have suggested, it's better to do:

    while (<FILE>) { # do something here }
    because this won't use so much memory.