Perl: the Markov chain saw | |
PerlMonks |
Re: read file into scalarby tsee (Curate) |
on Oct 28, 2006 at 18:46 UTC ( [id://581101]=note: print w/replies, xml ) | Need Help?? |
Hi, perhaps you're doing it just for brevity, but I can't resist pointing out that it's a very bad idea to use flock() with numeric constants (e.g. 1). You should use the Fcntl module and import the flock constants:
Aside from being portable, it has the added benefit of being more friendly on the eyes and less demanding to your memory. Steffen
In Section
Seekers of Perl Wisdom
|
|