Hi,
My program has two different modes. When the user in on the first mode, he can only enter one path (c:\mydirectory\file.txt or c:\directory). My job is to make perl get the size of what was entered.
When the user is on the second mode, he not only gives me the path (c:\directory\), but in a textarea, I make him give me a bunch of directories which I will append to c:\directory\ so what I give Perl looks like c:\directory\thedirectoryfromtextarea.
What is in the textarea can be files or directories.
What do you recommand I use to get the size that would cover both modes?
As a side note, I tried installing Win32::DirSize and it is telling me it cannot found it but I need to do a "broader search" and when I type search Win32::DirSize it says there is no match for Win32::DirSize. I tried downloading it from activeperl, but it is not available either. I don't know what to do!
Thanks in advance for your help,
Claire
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.