in reply to return undef

Erm, so check if the function is returning undef or not.

print FILEHANDLE myfunction() || "";

Replies are listed 'Best First'.
Re^2: return undef
by dwijew (Initiate) on May 23, 2005 at 02:44 UTC
    this works but the whole file does not get copied for some reason. any ideas?