jcbyrne has asked for the wisdom of the Perl Monks concerning the following question:
I get a blank line between each character. If I do the following to the string before comparison:@test = split (//,$something); foreach (@test) {print "$_\n";}
The string acts as I would expect it to. The odd thing is that the NULLS do not appear if I run the SQL inside of a CGI script, just when it is run from the command line. Also, if I print the string to the console, the NULLS disappear, as if the print function knows how to deal with them. Has anyone ever seen anything like this?$something =~ /\0//g;
Thanks in advance for any assistance that you can provide.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: DBI returns NULL characters in string
by tye (Sage) on Apr 24, 2001 at 18:40 UTC | |
|
Re: DBI returns NULL characters in string
by converter (Priest) on Apr 24, 2001 at 22:26 UTC | |
by jcbyrne (Acolyte) on Apr 24, 2001 at 22:52 UTC | |
by converter (Priest) on Apr 24, 2001 at 23:17 UTC | |
by Anonymous Monk on Apr 26, 2001 at 22:03 UTC | |
|
Re: DBI returns NULL characters in string
by Caillte (Friar) on Apr 24, 2001 at 18:01 UTC | |
by Anonymous Monk on Apr 24, 2001 at 18:45 UTC |