Re: --compare current date file with previous day



David,

This is the code is the report file is in format of month&day
(ex:0925).
my %log = map { $_ => UnixDate($_, Report_%m%d.rpt) } qw{ today
yesterday };

What will be the format if that portion is generated as random numbers?
(like 1234 or 4561 something like that?

Thanks.

usenet@xxxxxxxxxxxxxxx wrote:
Shahriar wrote:
if ($today[2] eq $yesterday[2])

If you want to compare the second line, you need to do:

if ($today[1] eq $yesterday[1])

because Perl arrays start at zero (so $today[0] is the first line of
the file, and $today[1] is the second line).

has this format: Report_0925.rpt

0925 means Sept 25? Using jp's approach (which I greatly prefer):

my %log = map { $_ => UnixDate($_, "Report_%m%d.rpt") }
qw{ today yesterday };

--
David Filmer (http://DavidFilmer.com)

.



Relevant Pages

  • Re: Excel Macro help
    ... I receive a very ugly TXT report file that isn't ... like to format ... >> the txt file in Excel so that it is in the proper ... >> I've gotten things to a point and now I need a macro ...
    (microsoft.public.excel.programming)
  • Re: --compare current date file with previous day
    ... This is the code is the report file is in format of month&day ... What will be the format if that portion is generated as random numbers? ... If you want to compare the second line, ...
    (perl.beginners)
  • Re: Graphic format and file size
    ... > version XI) convert this format to .bmp because the report file without ...
    (microsoft.public.vb.crystal)
  • Graphic format and file size
    ... version XI) convert this format to .bmp because the report file without any ... Prev by Date: ...
    (microsoft.public.vb.crystal)
  • Re: Section breaks, Tables, and problems with page numbers
    ... Format Page Number gives you the choice of "Continue ... Footer toolbar (since these sections have no header or footer). ... is these "three-column tables" that appear to ... The page numbers within this 27 page portion don't seem to make much ...
    (microsoft.public.word.numbering)