Your code will not work. You have to define datemin, datemax, timemin, timemax in the mylist portion also. Strict gives problems to. You have to put $datemin, $datemax, $timemin, $timemax into arrays.

@date = ($datemin, $datemax)
@time = ($timemin, $timemax)

You also need to tell shift how to separate both date and time by dashes. Finally if you do all that (I'm a novice) I will not get any errors but when I do a search on (Didn't figure out how to tell split what to do and I'm guessing that's why I get the following errors).

Use of uninitialized value in numeric ge (<=) at line blah
Use of uninitialized value in numeric le (>=) at line blah

I'm thinking either I'm not telling the script what to do with $4 or Since "split" is defined wrong for the search query the script can't initialize $3 or $4 for the search. So if you don't mind clarifying what you intended please do so.

The Brass Monk

In reply to Re: Re: Mass file search prob by brassmon_k
in thread Mass file search prob by brassmon_k

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.