G
Guest
The following split command will perform the
split on one or more spaces. How can I perform
the split on one or more spaces AND tabs? Or
for that matter, ANY whitespace? This reads input
from a file, and you can't trust someone's text
editor to enter tabs or spaces!
my @arr = split(/ +/, $_, 2);
-Thanks
split on one or more spaces. How can I perform
the split on one or more spaces AND tabs? Or
for that matter, ANY whitespace? This reads input
from a file, and you can't trust someone's text
editor to enter tabs or spaces!
my @arr = split(/ +/, $_, 2);
-Thanks