[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] SYSOPEN



Mark Manning/Simulacron I writes:
|	sysopen( THEFILE, "$theFile", O_RDWR | O_CREAT ) || die $!;

The following works for me:

use Fcntl;

sysopen F, "Macintosh HD:Desktop Folder:f1", O_RDWR | O_CREAT, 0666 or
	die "can't sysopen: $!\n";
close F;

It also works if I leave off $perms.

MacPerl 5.2.0r4 CFM68k version, Quadra 840AV, System 7.5.5.

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch