in reply to Printing by date
The variables $m, $d, and $y do not appear to be defined in your script, so I'm not sure how the following code is working for you:
if($_=~/$m\/$d\/$y/) { @n_row=$_; #print " - $date{$_} - From Date=$m/$d/$y.<br>"; }
Also, you define $date to be a string containing "04/11/2004", but then redefine $date to be a hash. Was the first definition required? Update Well, you can do that but it does make the code more difficult to understand since the same variable name is being used for two different purposes.
Basically, as I glance at your code, I'm really not sure what it's suppose to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Printing by date
by Anonymous Monk on Apr 20, 2004 at 18:03 UTC | |
by Belgarion (Chaplain) on Apr 20, 2004 at 18:16 UTC |