The file db/ECO may exist, but it is corrupt. I get this error on windows if I first create a file called
db/ECO. On Linux, I get a different message:
Uncaught exception from user code:
tie said Couldn't open ./db/ECO: Inappropriate ioctl for devic
+e
Also, on Linux I can create the file with
touch to create an empty file, and that solves the problem. However, on Windows, an empty file isn't good enough - empty files still throw back the same error.
But the error goes away if I properly create the file as a correct DB_File:
C:\temp\t>del db\ECO
C:\temp\t>perl -MDB_File -e "tie(%E,q(DB_File),q(db/ECO))"
C:\temp\t>perl test.pl
no output
So I think that's your problem - this ECO file isn't a valid DB file, and there's something a slight bit off about the way that DB_File sets $! on Windows, such that it gives the wrong error message. (Probably all that confusion about errno vs. bsderrno that goes on with dbm stuff)
--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
map{y/X_/\n /;print}map{pop@$_}@/for@/
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.