Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Filesys::Smbclient and DBD::XBase

by meredith (Friar)
on Mar 30, 2004 at 22:26 UTC ( #341116=note: print w/replies, xml ) Need Help??

in reply to Filesys::Smbclient and DBD::XBase

The OP and I worked on this one on IRC... Our main problems were these:

  • $smbfilehandle isn't a "real" filehandle, it's a number that SmbClient uses to track its open files
  • XBase uses the value of the 'fh' parameter like an object, so we need an IO::Handle for this
  • Filesys::SmbClient doesn't provide a tied object like when using IO::Handle, so we must either use special read calls, or only builtins
  • It's possible to make a subclass for XBase that knows how to work with SmbClient, but that's quite a bit of work.
I think using mounted locations is the simplest solution, but in case any monk has an idea... it would be appreciated.

mhoward - at -

Replies are listed 'Best First'.
Re: Re: Filesys::Smbclient and DBD::XBase
by lo_tech (Scribe) on Mar 30, 2004 at 23:27 UTC

    Had something like this pop up last week trying to read a remote file-based 'database'. We ended up going the most expedient route by just bringing over the files ( < 100k, total). SMB w/XBase we left for a time when we had time.

    I know it's not a solution to your problem, but it does work (if a tad on the inelegant side).

    Well, that's my $.02 worth. No, for refunds you'll have to check our customer service department.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://341116]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-04-10 12:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found