in reply to &process or die
Also your function doesn't use a 'return' statement so it returns the return value of the last statement which is 'close()' in this case. Close seems to return false which might be caused be a failing open() in the first place. You can't close a file which you couldn't open.
Do you use use strict; use warnings; ?? If not put it in and look for correlated warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: &process or die
by steph_bow (Pilgrim) on Apr 18, 2008 at 15:42 UTC | |
by chromatic (Archbishop) on Apr 18, 2008 at 16:36 UTC |