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.
In reply to Re: &process or die
by mscharrer
in thread &process or die
by steph_bow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |