Hello:

I forgot to add that the data of the members are in a DBM file.

ixtangxi|anthony|19|US|male|MA|
lancerlotz|mark|21|US|male|AK|

Heres how my coding looks like:

############## ###retrieve member list opendir(MEMBERS, "$free_path"); @memberz = grep !/\.\.?/, readdir MEMBERS; closedir (MEMBERS); &memhead; ######## @members = sort @memberz; if ($start eq "") { $start = 1; } for $members (@members) { if ($members eq "total.dat") { next; } $c++; # count all items if($c >= $start){ # if $c count is = or greater than where to star +t $d++; # count items that match first test unless($d > $show){ # unless $d count is greater than how many + to show #$action = $INPUT{'action'}; #$membername = $INPUT{'name'}; #$username = $INPUT{'username'}; #$cityx = $INPUT{'city'}; #$genderx = $INPUT{'gender'}; #$countryx = $INPUT{'country'}; #$statex = $INPUT{'state'}; #$agex = $INPUT{'age'}; #$start = $INPUT{'start'}; #$show = $INPUT{'show'}; #coollect info use DB_File; # optional; overrides default tie %cata, "DB_File", "$path/accounts" or die "Can't open FILENAME: $! +\n"; my $acc_data = $cata{$members}; untie(%cata); ($email,$name,$pwd,$size,$creation,$last_log,$size_added,$hf_on, $website_name,$website_des,$numdirs,$www_of,$www_name,$www_bgcolor +, $www_bgimage,$www_text,$www_link,$www_vlink,$onhold,$address,$city +, $state,$zip,$country,$telephone,$gender,$age,$icq,$education, $income,$occupation,$d_o_b,$moderator,$gbook_of,$op_in,$icon_url, $file_types,$ftp_per,$session_str,$num_dirs,$num_files, $custom_1,$custom_2,$custom_3,$custom_4,$custom_5,$custom_6,$custo +m_7, $custom_8,$custom_9,$custom_10,$marital,$signup_ip,$last_ip,$formm +ail_of) = split(/\|/,$acc_data); ($month,$day,$year1,$year2) = split (/\,/,$d_o_b); #end collect info

Can I still use the hash suggestion by dws

Anthony

In reply to Re: Re: Search Categories - Most efficient way by perleager
in thread Search Categories - Most efficient way 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.