Hello:

When I have this code on my UNIX machine w/ apache it prints out the info from the hash:

use DB_File; # optional; overrides default tie %who, "DB_File", "$path/whosonline" or die "Can't open FILENAME: $ +!\n"; # open database, to be accessed through %HASH # close the database $rank = "0"; foreach $mename (keys %who){ if (-d "$free_path/$mename") { $rank++; print <<EOF; <a href="http://www.teen-reality.com/members/$mename">$mename</a><b>*< +/b>, EOF if ($rank eq "15") { print <<EOF; <a href="http://www.teen-reality.com/members/$mename">$mename<b>*</b>< +/a> ... <a href="http://www.teen-reality.com">more</> EOF last; } else { next; } } else { next; } } untie %who;


But when I put this same exact code on my Windows Machine, it doesnt work.

Anyone know whats wrong? I've installed a DBM Module on the windows machine and could write to a DBM file.

Thank you,
Dave

In reply to Reading a DBM file on Windows Machine by perleager

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.