flexvault has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get 'Fcntl' defines on Strawberry Perl?
by Corion (Patriarch) on Feb 08, 2012 at 12:55 UTC | |
by flexvault (Monsignor) on Feb 08, 2012 at 14:06 UTC |