Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: dynamically named arrays

by Anonymous Monk
on Oct 21, 2002 at 05:18 UTC ( [id://206777]=note: print w/replies, xml ) Need Help??


in reply to Re: dynamically named arrays
in thread dynamically named arrays

thanks for all the replies! whats basically happeneing is that someone at work is writing a catalogue search program in clarion (i know, i'd write it in perl if it were feasible) and becuase of clarion's lack of networking support i was asked to write a program to download catalogue updates. i came up with the ingenious idea of downloading updates of each type, getting the modification time for each file downloaded and put it into an array (intrinsicly named after the type). after all files have been downloaded it would sort the array, get that latest modified file and put it into an ini file so next time the update program is run it will check the modification time of the file its downloading against the one in the ini file. probably not the best way to do things but i can't think of any other way at the moment - i'm sure that will change.

Replies are listed 'Best First'.
Re:^3 dynamically named arrays
by Sinister (Friar) on Oct 21, 2002 at 09:06 UTC
    If the box on the other end is a UN*X box you could consider touching a file in each directory holding files called something like '.browser-time'.

    If the timestamps of the '.browser-time' and the '.' differ, files where changed or added since your last visit, cause the '.' takes over the timestamp of the latest changed or added file

    This can save you some time in searching these things.

    er formait hyarya.
    -- "Life is a house and the next tornado is never far away"
    -- "lovely by nature"

      Well, if you're using UN*X, there are things like rdist and rsync that would do the whole works more efficiently.

      thor

      The modification time does not "take over the timestamp" of the latest changed or added file. The modification time of a directory only changes when a file is added or removed.
Re: Re: Re: dynamically named arrays
by demerphq (Chancellor) on Oct 21, 2002 at 11:02 UTC
    You may find that a DB_File or relative would be more suitable than an INI file.

    --- demerphq
    my friends call me, usually because I'm late....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://206777]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found