Phoenix.pm: Best Methods on Win32

Scott Walters scott at illogics.org
Mon Nov 10 14:23:48 CST 2003


I'm the last person to ask about Win32 (or BeOS, or DG-UX, or...)
but I suggest the excellent File::Find. Think of it as a kind of
opendir() that works recursively. The rename() built-in should be
all that you need to rename the files. If you did anything more
complex, then the Win32 object might be handy (depending on what
it does). If you don't want to rename them at all, I think the
mkisofs program (google for it) lets you create an .iso file
and stuff files into it and have them named things completely
differant than their actual name. This would be the easiest
way to get rid of excessively verbose path information.

-scott

On  0, Scott Thompson <scottcodes at thepurplehaze.com> wrote:
> 
> OK, here's a Perl-related post/question. :)
> 
> While burning CD-ROM backups on Win32, I discovered that several paths are
> longer than the ISO standard allows.
> 
> In building a script that reports on paths that are longer than that
> standard (255 chars, I think...), what suggestions does anyone have on best
> approaches?
> 
> Would accessing Win32 FileObject be the best approach?  Or simply reading
> dirs/files natively (within Perl...)?
> 
> I'm thinking about *starting* with the Win32 FO and seeing how that goes.
> Suggestions most welcome.
> 
> Scott Thompson
> 



More information about the Phoenix-pm mailing list