Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
incrementing file names
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Jim Keenan, post: 4751218"] You will almost certainly have to store _something_ on disk; otherwise you would have to go to the ftp site to see what the next number to be assigned is. But what you store could be as simple as a file containing a hash keyed by 'mmdd' (or, for greater flexibility, 'yyyymmdd') which increments a counter for each key: file: date.config %dateconfig = ( 20031226 => 00005, 20031227 => 00003, ... ) .... in your main package: our (%dateconfig); require date.config; Then increment the number and date and format accordingly with 'sprintf'. Jim Keenan [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
incrementing file names
Top