in reply to Re^2: Check if a file exists and if not create it - use sysopen
in thread Check if a file exists and if not create it

have you imported the module with use Fcntl ? see Fcntl

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.