scalar to array?
- From: monkeys paw <user@xxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 13:50:15 -0500
What is the easiest way to push a scalar variable containing text into an array?
i.e.
$text = 'here is
a line
that has
four lines';
@lines = ???
the end result is:
@lines =('here is', 'a line', 'that has', 'four lines');
.
- Follow-Ups:
- Re: scalar to array?
- From: Jürgen Exner
- Re: scalar to array?
- From: Jim Gibson
- Re: scalar to array?
- From: xhoster
- Re: scalar to array?
- Prev by Date: Re: Get an arbitrary hash key, quickly.
- Next by Date: Odd (undocumented?) behavior of RAM file within a loop
- Previous by thread: Re: uniq without sort <-------------- GURU NEEDED
- Next by thread: Re: scalar to array?
- Index(es):