File type compatibility issue with Perl

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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"...
    4. 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"...
    5. 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...
  3. #2

    Default 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.
    > Name 1Name 2Name 3
    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 -
    Tina Mueller Guest

  4. #3

    Default 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

  5. #4

    Default Re: File type compatibility issue with Perl

    In article <0G_Ua.567622$Vi5.14131529@news1.calgary.shaw.ca >,
    "\"Dandy\" Randy" <ducott@hotmail.com> wrote:
    > > 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.
    one more case of a micro$oft product trying to think for us...

    --
    Michael Budash
    Michael Budash Guest

  6. #5

    Default 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.
    >
    > 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
    Huh? I can't see this happening, just because you've changed the file
    extension. How about showing us the code that writes information to your
    file?

    Garry


    Garry Short Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139