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

i get bare word error when i complie the script using flags O_RDWR or others, what could be the reason ?

  • Comment on Re^2: Check if a file exists and if not create it - use sysopen

Replies are listed 'Best First'.
Re^3: Check if a file exists and if not create it - use sysopen
by Discipulus (Canon) on Jun 24, 2016 at 08:57 UTC
    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.