Ask a Question related to PERL Miscellaneous, Design and Development.
-
\Dandy\ Randy #1
File type compatibility issue with Perl
Hey everyone, perhaps someone could shed some light on this issue. I'm
writing a script that maintains an addressbook online with a Perl flatfile
database. The script was working fine until I renamed the database files
from ".txt". to ".db" All entries in the database are on separate lines.
When the database had a ".txt" extension, and I viewed the data, all data
appeared on separate lines as constructed.
Name 1
Name 2
Name 3
When I renamed the extensions to ".db", the data appears on a single line.
Name 1Name 2Name 3
Can anyone tell me why this is happening? I would like to retain the .db
extensions if at all possible. TIA!
R
\Dandy\ Randy Guest
-
Compatibility Components Issue
I have noticed that the compatibility components that enable older Shockwave content to be played in Shockwave 11 are not downloaded by default, but... -
dbmopen compatibility from perl 5.6 to 5.8
I posted this question once before, a couple of days ago, but never really got an answer... I have numerous perl scripts, mostly cgi's, that open... -
HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type
I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"... -
HowTo Send Uploaded File with INPUT Type file to Sql Server Image Data Type ?
I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post"... -
Oracle 8i and AIX 5 compatibility issue
Hello Just installed Oracle 8.1.7 on AIX 5. Oracle version downloaded from Oracle> Oracle8i Enterprise Edition (64-bit) Release 3 (8.1.7) for... -
Tina Mueller #2
Re: File type compatibility issue with Perl
"\"Dandy\" Randy" wrote:
> Hey everyone, perhaps someone could shed some light on this issue. I'm
> writing a script that maintains an addressbook online with a Perl flatfile
> database. The script was working fine until I renamed the database files
> from ".txt". to ".db" All entries in the database are on separate lines.
> When the database had a ".txt" extension, and I viewed the data, all data
> appeared on separate lines as constructed.> Name 1
> Name 2
> Name 3> When I renamed the extensions to ".db", the data appears on a single line.maybe i'm missing something. what do you mean by "appears".> Name 1Name 2Name 3
viewing it in an editor or printing it?
the following works for me:
02:48am tina@lux:tests 498> cat test.txt
Name 1
Name 2
Name 3
02:49am tina@lux:tests 499> mv test.txt test.db
02:49am tina@lux:tests 500> cat test.db
Name 1
Name 2
Name 3
02:49am tina@lux:tests 501>
maybe you should as well show some relevant lines of the
script...
hth, tina
--
[url]http://www.tinita.de/[/url] \ enter__| |__the___ _ _ ___
[url]http://Movies.tinita.de/[/url] \ / _` / _ \/ _ \ '_(_-< of
[url]http://www.perlquotes.de/[/url] \ \ _,_\ __/\ __/_| /__/ perception
- my mail address expires end of august 2003 -
Tina Mueller Guest
-
\Dandy\ Randy #3
Re: File type compatibility issue with Perl
The data appears on the same line when I view the data in notepad.
> maybe i'm missing something. what do you mean by "appears".
> viewing it in an editor or printing it?
> the following works for me:
> 02:48am tina@lux:tests 498> cat test.txt
> Name 1
> Name 2
> Name 3
> 02:49am tina@lux:tests 499> mv test.txt test.db
> 02:49am tina@lux:tests 500> cat test.db
> Name 1
> Name 2
> Name 3
> 02:49am tina@lux:tests 501>
>
> maybe you should as well show some relevant lines of the
> script...
>
> hth, tina
> --
> [url]http://www.tinita.de/[/url] \ enter__| |__the___ _ _ ___
> [url]http://Movies.tinita.de/[/url] \ / _` / _ \/ _ \ '_(_-< of
> [url]http://www.perlquotes.de/[/url] \ \ _,_\ __/\ __/_| /__/ perception
> - my mail address expires end of august 2003 -
\Dandy\ Randy Guest
-
Michael Budash #4
Re: File type compatibility issue with Perl
In article <0G_Ua.567622$Vi5.14131529@news1.calgary.shaw.ca >,
"\"Dandy\" Randy" <ducott@hotmail.com> wrote:
one more case of a micro$oft product trying to think for us...>> > maybe i'm missing something. what do you mean by "appears".
> > viewing it in an editor or printing it?
> > the following works for me:
> > 02:48am tina@lux:tests 498> cat test.txt
> > Name 1
> > Name 2
> > Name 3
> > 02:49am tina@lux:tests 499> mv test.txt test.db
> > 02:49am tina@lux:tests 500> cat test.db
> > Name 1
> > Name 2
> > Name 3
> > 02:49am tina@lux:tests 501>
> >
> > maybe you should as well show some relevant lines of the
> > script...
> The data appears on the same line when I view the data in notepad.
--
Michael Budash
Michael Budash Guest
-
Garry Short #5
Re: File type compatibility issue with Perl
"Dandy" Randy wrote:
Huh? I can't see this happening, just because you've changed the file> Hey everyone, perhaps someone could shed some light on this issue. I'm
> writing a script that maintains an addressbook online with a Perl flatfile
> database. The script was working fine until I renamed the database files
> from ".txt". to ".db" All entries in the database are on separate lines.
> When the database had a ".txt" extension, and I viewed the data, all data
> appeared on separate lines as constructed.
>
> Name 1
> Name 2
> Name 3
>
> When I renamed the extensions to ".db", the data appears on a single line.
>
> Name 1Name 2Name 3
>
> Can anyone tell me why this is happening? I would like to retain the .db
> extensions if at all possible. TIA!
>
> R
extension. How about showing us the code that writes information to your
file?
Garry
Garry Short Guest



Reply With Quote

