Perl 5.6.1 gives me "Modification of a read-only value attempted" without the assignment.
From perldoc perlfunc syscall:
You can't use a string literal (or other read-only string) as an argument to "syscall" because Perl has to assume that any string pointer might be written through.
(Update:) you can probably get around this with unpack"i",pack"p","filename" but I haven't tried.
In reply to Re^3: "touching" a file
by ambrus
in thread "touching" a file
by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |