Next | Tie::File | 13 |
If performance is more important than immediate writing, you may disable it:
my $f_obj = tied(@FILE);
$f_obj->defer;
for (@FILE) { s/^/>> /; }
$f_obj->flush;
All writing is done in memory until you call ->flush
(Or until the memory limit you specified is exceeded.)
Next | . | Copyright © 2002 M. J. Dominus |