On Friday, September 27, 2002, at 12:50 am, Georgia Citizen wrote:
> I have a variable that contains multiple lines, each ending with a
> line-feed.
>
> I want to create an array that contains one line per each line of text
> contained in a variable.
As you don't say i don't know what your o
Fill lines from a string into an array:
$_ = "Tony
Jeff
Jimmy
Tammy";
## TIMTOWToDI -- either (1.)
@kids = split "\n", $_;
print "(1.) ", join ":", @kids;
## or, because both parameters are default:
@kids = split;
print "\n(1a.) ", join ":", @kids;
print "\n(1b.) @kids
my $test = <