|
|
sybperl-l Archive
Up Prev Next
From: "Raja Sambamurty" <rajags at hotmail dot com>
Subject: Re: sybperl collapsing space columns
Date: Nov 14 1998 2:39AM
Yup, you are right. Its actually a char (4) null, the null part making
it a varchar. don't know why I didn't think of it. thanks
>
>Raja Sambamurty writes:
> > I am not sure if this was raised here before but I have a problem
with
> > reading columns that have empty spaces into a (syb)perl array. For
> > example, I have
> >
> > @A=$dfh->sql ("select * from tbl");
> > foreach $r (@A) { print @{$r} . "\n"; }
> >
> > where tbl has 2 columns
> >
> > colA colB
> > xx ' ' -- 4 spaces
> >
> > and examining the array in the debugger gives me
> >
> > 1 'XX'
> > 2 ' '
> >
> > seems to me that sybperl is collapsing the multiple spaces into one.
any
> > work arounds would be appreciated. thanks
>
>My guess is that colB is a varchar.
>
>Michael
>--
>Michael Peppler -||- Data Migrations Inc.
>mpeppler@mbay.net -||- http://www.mbay.net/~mpeppler
>Int. Sybase User Group -||- http://www.isug.com
>Sybase on Linux mailing list: ase-linux-list@isug.com
>
>
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
|