t0j0 has asked for the wisdom of the Perl Monks concerning the following question:
it will print thisisastring . it is not what i want.$str = "this is a string"; print $split(/\s/,$str);
$str = "this is a string"; $i = split(/\s/,$str); print $i;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: different return type for split
by jeroenes (Priest) on Mar 19, 2001 at 14:50 UTC | |
by merlyn (Sage) on Mar 19, 2001 at 19:46 UTC | |
|
Re: different return type for split
by busunsl (Vicar) on Mar 19, 2001 at 14:05 UTC | |
|
Re: different return type for split
by snowcrash (Friar) on Mar 19, 2001 at 14:06 UTC | |
|
Re: different return type for split
by t0j0 (Novice) on Mar 19, 2001 at 14:03 UTC | |
|
Re: different return type for split
by arturo (Vicar) on Mar 19, 2001 at 23:30 UTC |