in reply to
different return type for split
if you don't call split in list context, it returns the number of fields found. try
print scalar split(/\s/,$str);
to print the number of elements it returns.
cheers
s
n
o
w
c
r
a
s
h
/
/
/
/
/
/
Comment on
Re: different return type for split
Download
Code
In Section
Seekers of Perl Wisdom