Help for this page

Select Code to Download


  1. or download this
    sub add_stuff_to_file {
        my ($filehandle, $stuff) = @_;
    ...
             print $filehandle $i->next();
        }
    }
    
  2. or download this
    serialize_stuff_to_file(Array::Iterator->new(@array));
    serialize_stuff_to_file(ArrayOfArrays::Iterator->new(@array));
    ...
    serialize_stuff_to_file(HashOfHashes::Iterator->new(%hash));
    serialize_stuff_to_file(HashOfArrays::Iterator->new(%hash));
    serialize_stuff_to_file(Tree::Iterator->new($tree));