closing several files at once

Discussion in 'Perl Misc' started by pelonbiologo, Nov 25, 2005.

  1. pelonbiologo

    pelonbiologo Guest

    Hey

    Is there a way to close several file handles within the same
    line....???

    for example would something like the following exist?

    close (FILEHANDLE1, FILEHANDLE2,...,FILEHANDLEn);

    Cheers!
     
    pelonbiologo, Nov 25, 2005
    #1
    1. Advertisements

  2. pelonbiologo

    xhoster Guest

    undef @array_of_filehandles;

    Or better yet:

    }; # end of scope holding array of filehandles.

    Xho
     
    xhoster, Nov 25, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.