Help for this page

Select Code to Download


  1. or download this
    $ cat t_file_queue.pl 
    #!/usr/bin/perl
    ...
    n|1|brown
    o|1|dog
    p|5|gorgonzola
    
  2. or download this
    $ ./t_file_queue.pl 
    1.txt: opened new file (1)
    ...
    5.txt: Too many open files, close one: 3.txt:10, 4.txt:11, 1.txt:15
       closing 3.txt
    5.txt: opened new file (16)