Dear Monks,
Today, I tried Strawberry Perl for the first time. I was trying to run a test script, which works on all Unix/Linux distributions ( I've tried ) and also Cygwin. I downloaded/installed Strawberry Perl--no problem. I checked syntax with '-c' parameter and fixed the minor dos related problems. Then I executed the script and received an error message, something like "Vendor has not implemented Fcntl". My immediate reaction -- No locking. The test is single user, so I removed the 'flock' functions.
Now my real problem, when I reran the script, the defines in 'Fcntl' for using the 'sysopen' function didn't exist. I temporarily fixed the problem by running this on Linux:
I replaced the above defines with '262' and the test worked.perl -e 'use Fcntl;$n=O_CREAT | O_NONBLOCK | O_RDWR;print "$n\n";' Result: 262
Any ideas for a better solution? Is there a way to test for Strawberry Perl? I use 'uname -a' in *nix.
Thank you
"Well done is better than well said." - Benjamin Franklin
In reply to How to get 'Fcntl' defines on Strawberry Perl? by flexvault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |