Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: Tie Failed for berkeley DB file

by mitd (Curate)
on Jan 13, 2006 at 06:04 UTC ( #522902=note: print w/replies, xml ) Need Help??

in reply to Re^2: Tie Failed for berkeley DB file
in thread Tie Failed for berkeley DB file

Hmmm ... once again it sure would help if you could show us the output from $!.

mitd-Made in the Dark
I've always been astonished by the absurd turns
rivers have to make to flow under every bridge.

Replies are listed 'Best First'.
Re^4: Tie Failed for berkeley DB file
by vennirajan (Friar) on Jan 13, 2006 at 06:09 UTC
    It displayed nothing.Here is my code,
    tie( %hash, 'DB_File::Lock', $file, O_RDONLY, 0666, $DB_TREE, 'read' ) + || die ( "db file open error ..:$!:");

    Here is my output.
    db file open error ..:: at ./ line 12

    S.Venni Rajan.
    "A Flair For Excellence."
                    -- BK Systems.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://522902]
[1nickt]: thezip use Path::Tiny. @paths = path("/foo")-> children; (Excludes "." and ".." automatically.)
[1nickt]: (Also takes a compiled regexp as an arg to filter the list)
[1nickt]: For multiple dirs use iterator(): $it = path("/foo")-> iterator; while ( my $path = $it->() ) {...}
[1nickt]: (also skips . and .. automatically, and follows subdirs if you set <c\>recurse => 1</c>

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-03-28 18:43 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (339 votes). Check out past polls.