On Sat, Sep 29, 2001 at 11:08:11AM -0400, Darfler, Jim (J.E.) wrote:
> How would I go about sending to a file the volume names and dates sorted
> by the date?

Open the file, iterate through your data structure, write what data you want
to the file, close the file.


> I had thought to put the information into another array and sort it before
> sending it out. If I do that, how do I sort correctly? Any suggestions?

Based on what criteria?  with what data?


I don't mean to be difficult, but your questions are entirely too vague. 

Are you asking about manipulate a basic data structure?  Read perldoc
perldata, and perldoc perldsc.

Are you asking how to sort?  Read perldoc -f sort.

Are you asking how to manipulate a file?  Read perldoc perlopentut, perldoc
-f open, and perldoc perlop (the "I/O Operators" section).

It sounds to me like you don't even know how to begin to approach this
problem, in which case a review of some basic learning material could help.
_Learning Perl_ by Randal Schwartz or _Beginning Perl_ by Simon Cozens are
good beginner's material.

If, with all of that, you're still having problems feel free to ask your
question again.  However, provide more detail next time; some example input,
what you expect as output, and what you've tried would all be helpful.

 
Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to