Since this is a beginners list, I guess someone (i.e. me) should point out
that perhaps the simplest way to read an array from STDIN is to do something
like:

@theseLines = <STDIN>;

This will by default add one array entry per line of user input until the
user enters a cntrl-d.

Of course, if you are stuck on prefacing each line with the ':', or
terminating the input some other way, you wouldn't want to use this.

----- Original Message -----
From: "Shaun Fryer" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 4:16 PM
Subject: reading multi-line <STDIN> into an array


> I'm curious if anyone has an better idea of how to recieve multiple
> lines of <STDIN> into a single array.


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

Reply via email to