AndrewMcHorney wrote:
I think we are loosing track of what I want to do.

That may be true for my latest message, but only for that I believe.

I think you are loosing track of what is reasonable to expect from a list like this.

I want to stay out of the dir code approach.

I want to find all the files on a drive (C, D...) and put them into an array. I would like access to the file size

How?

of the files so if I find 2 files with the same name I want to compare the file size.

My goal is to create 3 directories. The first would contain only the directory names.

Directories usually contain files. What exactly do you mean by that? Do you possibly mean variables?

The second one would have the file name (minus directory path) and each file would have a corresponding entry that would point to

Corresponding entry? Point to? What do you mean?

the entry in directory array for this file. A 4th array would contain the file size.

To me, it sounds like you would like to create some kind of hash data structure.

    http://perldoc.perl.org/perldsc.html

Now in layman terms how can I do this in perl without using a "dir" to keep it as portable as possible.

By writing a Perl program. Show us what you have so far, let us know which part(s) of it you find difficult, and somebody may be willing to help you fix it. Don't expect anybody to write the whole program for you for free.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to