Took a peek at podview.pl. Instead of a datafile it uses the registry. It
also uses a hash instead of an array, so duplicates don't exist (if you open
the same file multiple times). 

Good call, this is a better way to handle it, assuming the person using it
is careful with the registry.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 9:20 AM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] Most-Recently-Used files


Look in podview.pl, in the samples directory that comes with the zip 
file, for code that implements such a menu.  (Although I've never 
used this code, I noticed the feature when I was looking through the 
samples.)  If you got Win32::GUI by PPM from ActiveState, you 
probably don't have this directory.  I highly recommend getting the 
zip file just for this directory, even if you are not going to build 
Win32::GUI yourself.

> I'd simply write the path\file to a data file somewhere and read it
> before you contruct your menu. You would write to this file every time
> someone opens or creates a file. You would probably also want to
> create a subroutine that limits how many files are kept, as such:


_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users

Reply via email to