On Nov 16, 2007 6:31 AM, Jeff Pang <[EMAIL PROTECTED]> wrote: snip > > You should *always* check the return value of system functions like > > open(), flock(), seek(), chdir(), unlink(), etc. > > > Thanks John. I know it's good to check the return value at those places. > But I don't think it's so valueable work. b/c when you > open,flock,unlink a file unsuccessfully, it's most likely a system > problem, not the perl program's probrom. snip
System problems are a Perl program's problem. You should check the return values from those functions and take appropriate actions. If you don't then your code is fragile and only idiots will use it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/