On Wed, 2006-26-04 at 15:22 -0500, Rance Hall wrote:
> I'm working on a new perl script thats giving me fits.
>
> Ive never quite seen anything like this.
>
> here is the command that is not giving me the results I want.
>
> @domain = split(' ',$domainlist);
>
> what should have happened was that if there was any whitespace in the
> file (including new lines, and such) thats where the split would have
> occurred
@domain = split /\s+/, $domainlist;
It's not splitting on whitespace since you are telling it to split on a
single space character (ASCII 0x20).
--
__END__
Just my 0.00000002 million dollars worth,
--- Shawn
"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>