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

  1. #1

    Default Perl DBMS

    Hi,

    I have a ikonboard messageboard ( which is written in perl), and I have all
    the databases saved locally.

    However they are in a *.db, *.dnt.db format, and i cannot access them via
    the standard dbmopen(%hash, $database, 0666).

    It simply creates a new file instead of accessing the current one.

    I had a suspicion that the version of dbm on the server ( ie the one that
    created the databases at the start) is a diffenent on to the one on my
    windows machine.

    So i copied the perl script to the server and tried to run it there - still
    unsuccessfully.

    Could not open message_data-115-1055789109 (Invalid argument) at read.pl
    line 36.

    ( I removed the .db from the filename ).


    Does anyone know what the problem is. I can post a sample database if
    required.
    Thanks




    Dave Guest

  2. Similar Questions and Discussions

    1. Off Topic: Active Perl Native Windows / cygwin perl
      I have both activestate windows native perl installed and the default cygwin perl. How can I have the cygwin shell use the windows perl rather...
    2. Control a non-perl image viewer from perl script
      Below is a (non-finished) script that trys to run a linux viewer called eog (eye of gnome) in a script that will eventually allow me to power thru...
    3. Which DBMS?
      Hi I have been asked to implement an error logging/management database for the network technicians in our company. The idea is that staff using...
    4. Re : Installing CPAN Perl Modules with Activestate Perl 5. v5.8
      Hi, In the process of trying to get perl modules installed, I downloaded over 300 Activestate specific perl modules and they work fine (of the ones...
    5. DBMS job for last day of the month
      I am trying to submit a dbms job to run on the last day of every month starting at 31 Dec at 18:30 using the following code: set serveroutput on...
  3. #2

    Default Re: Perl DBMS

    On Thu, 11 Sep 2003 22:22:33 +0100
    "Dave" <dave334234@inter.com> wrote:
    <snip>
    > Does anyone know what the problem is. I can post a sample database
    > if required.
    No, but code would be helpful :)

    --
    Jim

    Copyright notice: all code written by the author in this post is
    released under the GPL. [url]http://www.gnu.org/licenses/gpl.txt[/url]
    for more information.

    a fortune quote ...
    [Sir Stafford Cripps] has all the virtues I dislike and none of
    the vices I admire. -- Winston Churchill
    James Willmore Guest

  4. #3

    Default Re: Perl DBMS

    Dave wrote:
    > I have a ikonboard messageboard ( which is written in perl), and I
    > have all the databases saved locally.
    >
    > However they are in a *.db, *.dnt.db format, and i cannot access
    > them via the standard dbmopen(%hash, $database, 0666).
    >
    > It simply creates a new file instead of accessing the current one.
    >
    > I had a suspicion that the version of dbm on the server ( ie the
    > one that created the databases at the start) is a diffenent on to
    > the one on my windows machine.
    Are you sure they are DBM files? Or can they be plain text files that
    happen to have .db file extentions? (Have you tried to open one of
    them with e.g. Notepad?)

    If that doesn't help, you'd better do as James suggested and post some
    code, such as a code fragment that creates or read the databases.

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  5. #4

    Default Re: Perl DBMS

    a    R  ?_?y 
     эh^ 



      ` `

    1|^|1063198343|^|0|^|Hi|^|Hey there&#33; &nbsp;Hows
    U?<br><br>Sarah|^|0|^|83-1054642790|^|Sarah
    B|^||^||^|in|^|67-1054343639|^|67-1054343639|^|Chumiest crazy1

    Here is one of the databases ( this is just copied and pasted after the file
    was opened in notepad.

    Thanks


    "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    news:bjrs0u$n0sbu$1@ID-184292.news.uni-berlin.de...
    > Dave wrote:
    > > I have a ikonboard messageboard ( which is written in perl), and I
    > > have all the databases saved locally.
    > >
    > > However they are in a *.db, *.dnt.db format, and i cannot access
    > > them via the standard dbmopen(%hash, $database, 0666).
    > >
    > > It simply creates a new file instead of accessing the current one.
    > >
    > > I had a suspicion that the version of dbm on the server ( ie the
    > > one that created the databases at the start) is a diffenent on to
    > > the one on my windows machine.
    >
    > Are you sure they are DBM files? Or can they be plain text files that
    > happen to have .db file extentions? (Have you tried to open one of
    > them with e.g. Notepad?)
    >
    > If that doesn't help, you'd better do as James suggested and post some
    > code, such as a code fragment that creates or read the databases.
    >
    > --
    > Gunnar Hjalmarsson
    > Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]
    >

    Dave Guest

  6. #5

    Default Re: Perl DBMS

    Please do not top post! [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]

    Dave wrote:
    > Gunnar Hjalmarsson wrote:
    >> Dave wrote:
    >>> I have a ikonboard messageboard ( which is written in perl),
    >>> and I have all the databases saved locally.
    >>>
    >>> However they are in a *.db, *.dnt.db format, and i cannot
    >>> access them via the standard dbmopen(%hash, $database, 0666).
    >>>
    >>> It simply creates a new file instead of accessing the current
    >>> one.
    >>>
    >>> I had a suspicion that the version of dbm on the server ( ie
    >>> the one that created the databases at the start) is a diffenent
    >>> on to the one on my windows machine.
    >>
    >> Are you sure they are DBM files? Or can they be plain text files
    >> that happen to have .db file extentions? (Have you tried to open
    >> one of them with e.g. Notepad?)
    >>
    >> If that doesn't help, you'd better do as James suggested and post
    >> some code, such as a code fragment that creates or read the
    >> databases.
    <funny characters snipped>
    > Here is one of the databases ( this is just copied and pasted after
    > the file was opened in notepad.
    So, then we know that they are not text files.

    Where is your code?

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  7. #6

    Default Re: Perl DBMS

    "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    news:bjsue0$n7l0a$1@ID-184292.news.uni-berlin.de...
    > Please do not top post! [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]
    which says '... they also agree that it's usually in bad taste to correct
    mistakes publicly'

    MS is the principal culprit IMO, not the newbees.

    ge0rge
    --
    Expert, n.:
    Someone who comes from out of town and shows slides.


    ge0rge Guest

  8. #7

    Default Re: Perl DBMS

    ge0rge wrote:
    > "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    > news:bjsue0$n7l0a$1@ID-184292.news.uni-berlin.de...
    >
    >> Please do not top post!
    >> [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]
    >
    > which says '... they also agree that it's usually in bad taste to
    > correct mistakes publicly'
    That was a quote out of context, which btw is bad everywhere.
    Actually, the quoting style document describes various kind of
    newsgroups, and to anybody who has followed _this_ group for a while,
    it stands perfectly clear that you'd better expect public corrections
    if you don't respect the posting guidelines.
    > MS is the principal culprit IMO, not the newbees.
    May be true. But pointing out to a newbie that there are posting
    guidelines is a way to help them benefit from this group. It does
    _not_ make him/her a "culprit".

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  9. #8

    Default Re: Perl DBMS

    "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    news:bjtbju$n7jti$1@ID-184292.news.uni-berlin.de...
    > ge0rge wrote:
    > > "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    > > news:bjsue0$n7l0a$1@ID-184292.news.uni-berlin.de...
    > >
    > >> Please do not top post!
    > >> [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]
    > >
    > > which says '... they also agree that it's usually in bad taste to
    > > correct mistakes publicly'
    >
    > That was a quote out of context, which btw is bad everywhere.
    > Actually, the quoting style document describes various kind of
    > newsgroups, and to anybody who has followed _this_ group for a while,
    > it stands perfectly clear that you'd better expect public corrections
    > if you don't respect the posting guidelines.
    Out of context? Perfectly clear to me. Here's another quote then - 'This
    document is a description of the traditionally accepted "quoting style" in
    Usenet newsgroup postings. Please do not consider this to be a "regulatory"
    document ("Thou shalt do it this way because we say so!") ...'
    >
    > > MS is the principal culprit IMO, not the newbees.
    >
    > May be true. But pointing out to a newbie that there are posting
    > guidelines is a way to help them benefit from this group. It does
    > _not_ make him/her a "culprit".
    I never said the newbie was culpable. MS is. Don't blame the users, fix the
    code - as the saying goes. My IT colleagues who together amongst themselves
    must have umpteenth years of computing experience also always top post their
    emails. I've learnt to be unconcerned by such a pecadillo. The content is
    more important than the form.

    BTW, you do realise this is a bit of a wind up.

    ge0rge
    --
    Where it is a duty to worship the sun it is pretty sure to be a crime to
    examine the laws of heat.
    -- Christopher Morley



    ge0rge Guest

  10. #9

    Default Re: Perl DBMS

    #!/usr/bin/perl

    print "Content type:text/html\n\n";

    my $path = `pwd`;
    chomp $path;

    opendir(DIR, $path) || print "Could not open $path";
    @files = grep { /\.db$/ } readdir(DIR);
    closedir(DIR);

    my $new_file ="";
    my @databases;

    foreach $file (@files){

    @info = split(/\./, $file, 2);


    if($info[0] ne $new_file){

    push(@databases, $info[0]);
    }

    $new_file = $info[0];


    }

    #!/usr/bin/perl

    print "Content type:text/html\n\n";

    my $path = `pwd`;
    chomp $path;

    opendir(DIR, $path) || print "Could not open $path";
    @files = grep { /\.db$/ } readdir(DIR);
    closedir(DIR);

    my $new_file ="";
    my @databases;

    foreach $file (@files){

    @info = split(/\./, $file, 2);


    if($info[0] ne $new_file){

    push(@databases, $info[0]);
    }

    $new_file = $info[0];


    }



    foreach $file (@databases){

    print "$file\n\n";

    dbmopen(%hash, $file, 0666) || print "Could not open $file ($!)";

    ## $! gives the error "Invalid Argument"

    foreach $key (keys %hash){

    print "$key : $hash{$key}\n";
    }

    dbmclose(%hash);

    }

    Ok heres my code. ( sorry that i didnt reply to the requested messages - the
    original posts have dissapeared from Outlook!)

    Dit not make sense to top post, thus meaning that u dont have to scroll
    through pages and pages of stuff just to get the info you want!

    Thanks

    "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    news:bjtbju$n7jti$1@ID-184292.news.uni-berlin.de...
    > ge0rge wrote:
    > > "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    > > news:bjsue0$n7l0a$1@ID-184292.news.uni-berlin.de...
    > >
    > >> Please do not top post!
    > >> [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]
    > >
    > > which says '... they also agree that it's usually in bad taste to
    > > correct mistakes publicly'
    >
    > That was a quote out of context, which btw is bad everywhere.
    > Actually, the quoting style document describes various kind of
    > newsgroups, and to anybody who has followed _this_ group for a while,
    > it stands perfectly clear that you'd better expect public corrections
    > if you don't respect the posting guidelines.
    >
    > > MS is the principal culprit IMO, not the newbees.
    >
    > May be true. But pointing out to a newbie that there are posting
    > guidelines is a way to help them benefit from this group. It does
    > _not_ make him/her a "culprit".
    >
    > --
    > Gunnar Hjalmarsson
    > Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]
    >

    Dave Guest

  11. #10

    Default Re: Perl DBMS

    ge0rge wrote:
    > "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    > news:bjtbju$n7jti$1@ID-184292.news.uni-berlin.de...
    >> ge0rge wrote:
    >>> "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    >>> news:bjsue0$n7l0a$1@ID-184292.news.uni-berlin.de...
    >>>> Please do not top post!
    >>>> [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]
    >>>
    >>> which says '... they also agree that it's usually in bad taste
    >>> to correct mistakes publicly'
    >>
    >> That was a quote out of context, which btw is bad everywhere.
    >> Actually, the quoting style document describes various kind of
    >> newsgroups, and to anybody who has followed _this_ group for a
    >> while, it stands perfectly clear that you'd better expect public
    >> corrections if you don't respect the posting guidelines.
    >
    > Out of context? Perfectly clear to me. Here's another quote then -
    > 'This document is a description of the traditionally accepted
    > "quoting style" in Usenet newsgroup postings. Please do not
    > consider this to be a "regulatory" document ("Thou shalt do it this
    > way because we say so!") ...'
    Dear George,

    Do you have any particular reason for questioning my simple pointer
    about top posting?

    You'd better study the posting guidelines for _this group_ before
    starting a discussion like this. The clpmisc guidelines at
    [url]http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html[/url],
    which express the consensus of _this_ group, say:

    "Intersperse your comments *following* each section of quoted
    text to which they relate. Unappreciated followup styles are
    referred to as "Jeopardy" (because the answer comes before the
    question), or "TOFU".

    Reversing the chronology of the dialog makes it much harder to
    understand (some folks won't even read it if written in that
    style). For more information on quoting style, see:

    [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url] "

    In other words, the purpose with referring to the general document
    about quoting style is to _further explain_ the reason why that
    particuar rule is applied in this group.
    > My IT colleagues who together amongst themselves must have
    > umpteenth years of computing experience also always top post their
    > emails.
    Emails is one thing, Usenet groups is another.
    > I've learnt to be unconcerned by such a pecadillo. The content is
    > more important than the form.
    Then you belong to the minority here. The consensus of _this_ group is
    pretty clear. Please respect that.

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  12. #11

    Default Re: Perl DBMS

    On Fri, Sep 12, ge0rge inscribed on the eternal scroll:
    > Out of context? Perfectly clear to me. Here's another quote then - 'This
    > document is a description of the traditionally accepted "quoting style" in
    > Usenet newsgroup postings. Please do not consider this to be a "regulatory"
    > document ("Thou shalt do it this way because we say so!") ...'
    Indeed. The advice is to do it not because the FAQ or RFC says you
    must, but because the body of other serious participants expect it,
    and when they killfile you for ignoring the social mores of the group,
    you'll be lucky if one of them bothers to tell you about it.
    > > > MS is the principal culprit IMO, not the newbees.
    There was (and may still be, for all that I know) an FAQ for
    microsoft.* groups which instructs participants to snip the quotage to
    the minimum needed for setting context, and place their responses
    after the relevant quoted parts. Does that sound familiar? For big-8
    usent groups, that is even more the expectation. As for other
    hierarchies, I recall an FAQ for alt.english.usage which explained to
    its participants that OE placed the cursor at the top of the quoted
    material because that was the natural place to start snipping
    irrelevant comments before placing one's responses below the relevant
    quoted parts to which one referred. Sounds familiar?
    > BTW, you do realise this is a bit of a wind up.
    Oh yes.

    Did I mention that the best adjunct to participating in usenet is a
    well-tended killfile?

    --
    Procrastination gives you something to look forward
    to putting off tomorrow. -spotted on ahbou
    Alan J. Flavell Guest

  13. #12

    Default Re: Perl DBMS

    ge0rge <ge0rge@Talk21.com> wrote:
    > My IT colleagues who together amongst themselves
    > must have umpteenth years of computing experience also always top post their
    > emails.

    email is not usenet. It is a different dynamic entirely.


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

  14. #13

    Default Re: Perl DBMS

    "Dave" <dave334234@inter.com> wrote in
    news:8as8b.1005$WI3.13044@newsfep4-glfd.server.ntli.net:
    > #!/usr/bin/perl
    Name the two things missing here...
    > print "Content type:text/html\n\n";
    >
    > my $path = `pwd`;
    > chomp $path;
    >
    > opendir(DIR, $path) || print "Could not open $path";
    > @files = grep { /\.db$/ } readdir(DIR);
    > closedir(DIR);
    You know, don't you, that @files will contain *only* the base names of the
    matching files, *not* their full paths?
    > my $new_file ="";
    > my @databases;
    >
    > foreach $file (@files){
    >
    > @info = split(/\./, $file, 2);
    >
    >
    > if($info[0] ne $new_file){
    >
    > push(@databases, $info[0]);
    > }
    >
    > $new_file = $info[0];
    >
    >
    > }
    Why are you making separate passes over arrays, instead of doing this
    filtering as you read the filenames?
    > foreach $file (@databases){
    >
    > print "$file\n\n";
    >
    > dbmopen(%hash, $file, 0666) || print "Could not open $file ($!)";
    Uh oh. Remember that bit about not having the full path names?
    >
    > ## $! gives the error "Invalid Argument"
    >
    > foreach $key (keys %hash){
    >
    > print "$key : $hash{$key}\n";
    > }
    >
    > dbmclose(%hash);
    >
    > }
    Eric Bohlman Guest

  15. #14

    Default Re: Perl DBMS

    Dave wrote:

    <code snipped>
    > Ok heres my code.
    It includes some errors, and Eric pointed out some of those.

    I think you need to read up on DBM files, the fact that there are
    different kinds, etc. A start may be
    [url]http://search.cpan.org/author/JHI/perl-5.8.0/lib/AnyDBM_File.pm[/url]

    From the code you posted it seems as if the data is stored in
    Berkeley format, and the DB_File module and/or the Berkeley DB library
    is probably not installed on your Windows box.

    Below follows some code that reads .db files, prints the contents, and
    saves the data as SDBM databases. SDBM is portable between Unix and
    Windows, and each database consists of two files with .dir respective
    ..pag extensions.
    > Dit not make sense to top post, thus meaning that u dont have to scroll
    > through pages and pages of stuff just to get the info you want!
    Please study the messages about top posting more carefully. ;-)

    # Code starts here

    #!/usr/bin/perl
    use strict;
    use warnings;
    use CGI::Carp 'fatalsToBrowser';
    use DB_File;
    use SDBM_File;
    use Fcntl;

    print "Content-type: text/html\n\n";

    my $path = `pwd`;
    chomp $path;

    opendir DIR, $path or die "Could not open $path\n$!";
    my @files = grep { /\.db$/ } readdir DIR;
    closedir DIR;

    foreach my $file (@files) {
    tie my %hash, 'DB_File', "$path/$file", 0666
    or die "Couldn't open... $!";

    print "$_ : $hash{$_}\n" for keys %hash;

    # Copy data to SDBM
    tie my %hash2, 'SDBM_File', "$path/".(substr $file, 0, -3),
    O_CREAT | O_RDWR, 0666 or die "Couldn't open... $!";
    %hash2 = %hash;
    untie %hash2;

    untie %hash;
    }

    # Code ends here

    Hope that helps!

    --
    Gunnar Hjalmarsson
    Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]

    Gunnar Hjalmarsson Guest

  16. #15

    Default Re: Perl DBMS

    "ge0rge" <ge0rge@Talk21.com> wrote:

    : My IT colleagues who together amongst themselves
    : must have umpteenth years of computing experience also always top post their
    : emails.

    The first rule of writing is to write for the audience. The audience in
    clpm prefers articles that meet certain style expectations. Whatever
    goes on in other newsgroups, in email, or among your colleagues is
    irrelevant.

    : The content is more important than the form.

    Then why do novels, proposals, screenplays, instruction manuals, and
    musical scores all have distinct and recognizable forms?

    In a forum like clpm, presentation can be more important than content,
    since readers are not at all obliged to be interested in what an author
    has to say. Cooperation is a matter of pragmatism. Make readers work
    at figuring out what you're saying and they're less likely to work at
    helping.

    Jay Tilton Guest

  17. #16

    Default Re: Perl DBMS

    "ge0rge" <ge0rge@Talk21.com> wrote in message news:<bjthmi$m4bv9$1@ID-175222.news.uni-berlin.de>...
    > "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    > news:bjtbju$n7jti$1@ID-184292.news.uni-berlin.de...
    > > ge0rge wrote:
    > > > "Gunnar Hjalmarsson" <noreply@gunnar.cc> wrote in message
    > > > news:bjsue0$n7l0a$1@ID-184292.news.uni-berlin.de...
    > > >
    > > >> Please do not top post!
    > > >> [url]http://web.presby.edu/~nnqadmin/nnq/nquote.html[/url]
    > > >
    > > > which says '... they also agree that it's usually in bad taste to
    > > > correct mistakes publicly'
    > >
    > > That was a quote out of context, which btw is bad everywhere.
    > > Actually, the quoting style document describes various kind of
    > > newsgroups, and to anybody who has followed _this_ group for a while,
    > > it stands perfectly clear that you'd better expect public corrections
    > > if you don't respect the posting guidelines.
    >
    > Out of context? Perfectly clear to me. Here's another quote then - 'This
    > document is a description of the traditionally accepted "quoting style" in
    > Usenet newsgroup postings. Please do not consider this to be a "regulatory"
    > document ("Thou shalt do it this way because we say so!") ...'
    >
    ..
    ..

    Well, you know what they say, when in Rome do as the Romans do.

    Tom
    ztml.com
    Tom Guest

  18. #17

    Default Re: Perl DBMS


    "Eric Bohlman" <ebohlman@earthlink.net> wrote in message
    news:Xns93F4CDEB8C228ebohlmanomsdevcom@130.133.1.4 ...
    > "Dave" <dave334234@inter.com> wrote in
    > news:8as8b.1005$WI3.13044@newsfep4-glfd.server.ntli.net:
    >
    > > #!/usr/bin/perl
    >
    > Name the two things missing here...
    I guess u mean -w ??
    > > print "Content type:text/html\n\n";
    > >
    > > my $path = `pwd`;
    > > chomp $path;
    > >
    > > opendir(DIR, $path) || print "Could not open $path";
    > > @files = grep { /\.db$/ } readdir(DIR);
    > > closedir(DIR);
    >
    > You know, don't you, that @files will contain *only* the base names of the
    > matching files, *not* their full paths?
    Yup
    > > my $new_file ="";
    > > my @databases;
    > >
    > > foreach $file (@files){
    > >
    > > @info = split(/\./, $file, 2);
    > >
    > >
    > > if($info[0] ne $new_file){
    > >
    > > push(@databases, $info[0]);
    > > }
    > >
    > > $new_file = $info[0];
    > >
    > >
    > > }
    >
    > Why are you making separate passes over arrays, instead of doing this
    > filtering as you read the filenames?
    What other way can i do this?
    > > foreach $file (@databases){
    > >
    > > print "$file\n\n";
    > >
    > > dbmopen(%hash, $file, 0666) || print "Could not open $file ($!)";
    >
    > Uh oh. Remember that bit about not having the full path names?
    I know this is bad programming practice, but for now I'm running the script
    in the same directory as the databases ( just till i get the thing
    working). But that dosnt explain why I get the error below. If the path was
    wrong then the dbm would create a new database with that name in the same
    directory as the script (if the script WAS in a different dir), but instead
    it says "Invalid Argument".
    > > ## $! gives the error "Invalid Argument"
    > >
    > > foreach $key (keys %hash){
    > >
    > > print "$key : $hash{$key}\n";
    > > }
    > >
    > > dbmclose(%hash);
    > >
    > > }

    Dave Guest

  19. #18

    Default Re: Perl DBMS

    <OT>

    "Alan J. Flavell" <flavell@mail.cern.ch> wrote in message
    news:Pine.LNX.4.53.0309130126160.5502@lxplus002.ce rn.ch...
    > On Fri, Sep 12, ge0rge inscribed on the eternal scroll:
    >
    > > Out of context? Perfectly clear to me. Here's another quote then - 'This
    > > document is a description of the traditionally accepted "quoting style"
    in
    > > Usenet newsgroup postings. Please do not consider this to be a
    "regulatory"
    > > document ("Thou shalt do it this way because we say so!") ...'
    >
    > Indeed. The advice is to do it not because the FAQ or RFC says you
    > must, but because the body of other serious participants expect it,
    > and when they killfile you for ignoring the social mores of the group,
    > you'll be lucky if one of them bothers to tell you about it.
    Well, that would be a bit of an overkill. Don't you think so? Killfiling
    someone because (s)he top post!
    >
    > > > > MS is the principal culprit IMO, not the newbees.
    >
    > There was (and may still be, for all that I know) an FAQ for
    > microsoft.* groups which instructs participants to snip the quotage to
    > the minimum needed for setting context, and place their responses
    > after the relevant quoted parts. Does that sound familiar? For big-8
    > usent groups, that is even more the expectation. As for other
    > hierarchies, I recall an FAQ for alt.english.usage which explained to
    > its participants that OE placed the cursor at the top of the quoted
    > material because that was the natural place to start snipping
    > irrelevant comments before placing one's responses below the relevant
    > quoted parts to which one referred. Sounds familiar?
    Can't understand why people (meaning us all, I guess) are so accommodating
    with MS and are prepared to make excuses or go through all sort of
    contortions to work with their software when clearly it is a stupid idea to
    place the cursor at the top. At the very least, they could have put an
    option to allow for the placement of the cursor.
    >
    > > BTW, you do realise this is a bit of a wind up.
    >
    > Oh yes.
    >
    > Did I mention that the best adjunct to participating in usenet is a
    > well-tended killfile?
    Whoaa! That's a bit below the belt. It was just a bit of harmless banter to
    test the water in this NG.
    BTW, I think the whole idea of a killfile is another OTT response to
    something not worth a second thought... but then again there's no accounting
    for what people feel passionate about.

    Anyway, I shall do as suggested by another poster - when in Rome ... ('cos
    top posters drive me nuts (well, rarely!)).

    Now, time for me to shut up and start lurking awhile in this NG until I have
    something worthwhile to ask or say!

    </OT>

    ge0rge
    --
    The more things change, the more they stay insane.


    ge0rge Guest

  20. #19

    Default Re: Perl DBMS

    Dave <dave334234@inter.com> wrote:
    > "Eric Bohlman" <ebohlman@earthlink.net> wrote in message
    > news:Xns93F4CDEB8C228ebohlmanomsdevcom@130.133.1.4 ...
    >> "Dave" <dave334234@inter.com> wrote in
    >> news:8as8b.1005$WI3.13044@newsfep4-glfd.server.ntli.net:
    >>
    >> > #!/usr/bin/perl
    >>
    >> Name the two things missing here...
    >
    > I guess u mean -w ??

    The warnings pragma is better than the command line switch variety.

    The two things are:

    use strict;
    use warnings;


    Have you seen the Posting Guidelines that are posted here frequently?


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

  21. #20

    Default killfiling (was Re: Perl DBMS)

    ge0rge <ge0rge@Talk21.com> wrote:
    ><OT>

    But it isn't.

    Where else but clpmisc would be appropriate for discussing
    the goings-on in clpmisc?

    Such "administration" threads are annoying/wasteful, but not off-topic.

    > "Alan J. Flavell" <flavell@mail.cern.ch> wrote in message
    > news:Pine.LNX.4.53.0309130126160.5502@lxplus002.ce rn.ch...
    >> On Fri, Sep 12, ge0rge inscribed on the eternal scroll:

    [snip: about top-posting]

    >> Indeed. The advice is to do it not because the FAQ or RFC says you
    >> must, but because the body of other serious participants expect it,
    >> and when they killfile you for ignoring the social mores of the group,
    >> you'll be lucky if one of them bothers to tell you about it.
    >
    > Well, that would be a bit of an overkill. Don't you think so?

    Whether it is "right" or "best" is irrelevant (unless you think
    you can change everyone's mind).

    What matters in a pragmatic sense is that it happens here.

    So if you want the widest readership for articles posted here, it
    is worth a bit of effort to avoid stepping on killfile "mines".

    Using an upside-down posting style is but one variety of mine.

    The Posting Guidelines attempt to steer folks away from
    many of the most common varieties...

    > Killfiling
    > someone because (s)he top post!

    I have:

    % Jeopardists
    Score:: -9998
    < 37 addresses so far >


    None of them for top-posting once or twice.

    All of them people who complain about it once corrected, or
    insisted on continuing with reversing time.

    >> Did I mention that the best adjunct to participating in usenet is a
    >> well-tended killfile?
    >
    > Whoaa! That's a bit below the belt.

    I don't know what you saw there, but I don't see a "blow"
    landed anywhere.

    Did you see something personal there?

    Sounds like merely a description of clpmisc reality to me...

    > It was just a bit of harmless banter to
    > test the water in this NG.

    If you slap a junk yard dog to see if he is mean, you should be
    prepared to pay with your hand (or worse). :-)

    > BTW, I think the whole idea of a killfile is another OTT response to

    How to not be ignored in clpmisc is on-topic for clpmisc.

    > Now, time for me to shut up and start lurking awhile in this NG

    Perhaps you cannot understand the wide spread use of killfiles
    because your experiences are different from the killfiler's
    experiences.

    Lurking for a few years will help give you insight there. :-)

    Most of the frequent-answers are busy folks. That's how they gain
    enough expertise to be able to answer questions!

    They undoubtedly have a "Perl time" budget and clpmisc is likely
    only one of the (less-important) places that that time is spent. They're
    busy writing modules, reading mailing lists, etc as well as
    donating time here.

    When they get in a budget crunch, they can stop reading clpmisc
    or they can find a way to spend less time while reading clpmisc.

    Many wonderful question-answerers have already chosen the
    former approach. :-(

    I've had my code corrected here by Larry Wall himself. That won't
    be happening anymore. :-( :-(

    So, these type of people who _are_ still here, are very likely to
    have implemented the later approach, ie. they use heuristics
    (scorefiles) to help reduce their workload.


    This is a high traffic newsgroup, often 200 posts a day.

    Nobody reads all of them, so they must "filter" them somehow.

    Whether they do it manually or automatically does not make much
    difference, they must be skipping a whole lot of articles either way.


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan 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