|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: sybperl collapsing space columns
Date: Nov 14 1998 12:34AM
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
|