in reply to A problem with tie
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.Uncaught exception from user code: tie said Couldn't open ./db/ECO: Inappropriate ioctl for devic +e
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.plno 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@/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A problem with tie
by hsmyers (Canon) on Mar 06, 2005 at 06:08 UTC |