[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [coldsync-hackers] newbie question(s)
On Thu, 18 Oct 2001, John Joseph Roets wrote:
> Hello.
> I'm writing back, as I'm basically set up with a regular cradle in ttyS0, and it
> runs fine.
> I however, need to create a conduit with the Palm::Raw module, and am having
> difficulties.
> It seems that my conduit is writing a file, yet it contains a mess of:
> this is a test
> HASH(0x81528bc)this is a test
> HASH(0x81811e4)this is a test
> HASH(0x8181ec4)this is a test
> HASH(0x8181f18)this is a test
> HASH(0x8181f6c)this is a test
> and on and on...
>
> What is going wrong here?
> foreach $record (@{$PDB->{"records"}})
> {
> print OUTFILE "this is a test\n";
> print OUTFILE $record;
> }
As so often happens in these sorts of cases, your script is doing
what you told it to do, not what you want it to do.
If you RTFM Palm::PDB(3), you'll see that $record is a hash.
Presumably you meant
print OUTFILE $record->{data};
or something similar.
--
Andrew Arensburger Actually, these _do_ represent the
arensb@ooblick.com opinions of ooblick.com!
Generic Tagline V 6.01
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.