You are here: irt.org | About | Feedback | 1728 [ previous next ]
Feedback on:
Creating a mailing list using Perl
Sent by
Thanos Chatziathanassiou on September 08, 2000 at 05:01:09:
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
Good article, but I think that using the diamond operator is quite faster and more efficient, especially for larger files. (ie
while (<FILE>) {
..do something ...
}
instead of
@lines = <FILE>;
foreach (@lines) {
..do something ...
}
Also, flock() is 'blocking' by default, so there really is no need to die(). It will just stand there, waiting for the file to be released. Unless a proccess has crashed and kept the file open (in which case it will probably already have been corrupted), it should be available moments later.
Other than that, it's ok...
Other feedback on 'Creating a mailing list using Perl' - show all