in reply to lack an adequate understanding of (at least) the seek function
While i do appreciate wanting to learn the intricacies of a particular tool, in this case i'd just get a different tool. Tie::File
Tie::File even has built-in flocking.use strict; use warnings; use Tie::File; tie my @file, 'Tie::File', 'messageTest.txt' or die "can't open\n"; my $MAX = 5; if (@file > $MAX) { @file = @file[0 .. $MAX - 1]; unshift @file, "new line"; }
Thanks to Corion for alerting me that i linked to File::Array ... oops :)
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: lack an adequate understanding of (at least) the seek function
by o2bwise (Scribe) on May 23, 2005 at 21:11 UTC | |
|
Re^2: lack an adequate understanding of (at least) the seek function
by o2bwise (Scribe) on May 24, 2005 at 18:17 UTC | |
by jeffa (Bishop) on May 24, 2005 at 18:23 UTC | |
by o2bwise (Scribe) on May 24, 2005 at 23:38 UTC |