Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: Creating a mailing list using Perl

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.