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:
    588
    Julien Phalip
    Feb 17, 2005
  2. =?Utf-8?B?Vk1J?=

    Closing popup window when closing parent window?

    =?Utf-8?B?Vk1J?=, Feb 14, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    883
    Thomas Hansen
    Feb 15, 2007
  3. Gal Diskin

    Iterating over several lists at once

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

    RDOC: several related modules in several C files

    Victor \Zverok\ Shepelev, Mar 6, 2007, in forum: Ruby
    Replies:
    3
    Views:
    313
    Max Lapshin
    Mar 16, 2007
  7. Lasse Reichstein Nielsen

    Several versions of IE at once!

    Lasse Reichstein Nielsen, Dec 29, 2003, in forum: Javascript
    Replies:
    0
    Views:
    145
    Lasse Reichstein Nielsen
    Dec 29, 2003
  8. Gancy
    Replies:
    4
    Views:
    439
    Rasto Levrinc
    Feb 3, 2005
Loading...