closing several files at once

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

  1. 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!
     
    , Nov 25, 2005
    #1
    1. Advertisements

  2. Guest

    wrote:
    > Hey
    >
    > Is there a way to close several file handles within the same
    > line....???


    undef @array_of_filehandles;

    Or better yet:

    }; # end of scope holding array of filehandles.

    Xho

    --
    -------------------- http://NewsReader.Com/ --------------------
    Usenet Newsgroup Service $9.95/Month 30GB
     
    , Nov 25, 2005
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Julien Phalip
    Replies:
    0
    Views:
    531
    Julien Phalip
    Feb 17, 2005
  2. Gal Diskin

    Iterating over several lists at once

    Gal Diskin, Dec 13, 2006, in forum: Python
    Replies:
    17
    Views:
    476
    Roy Smith
    Dec 27, 2006
  3. JJ
    Replies:
    9
    Views:
    577
    sloan
    May 7, 2007
  4. Iván Vega Rivera
    Replies:
    6
    Views:
    153
    Iván Vega Rivera
    Mar 8, 2006
  5. Victor \Zverok\ Shepelev

    RDOC: several related modules in several C files

    Victor \Zverok\ Shepelev, Mar 6, 2007, in forum: Ruby
    Replies:
    3
    Views:
    221
    Max Lapshin
    Mar 16, 2007
Loading...

Share This Page