in reply to Split ( ) is Giving Me a Splitting Headache
You're missing the first argument, what to split on,
Your usage was not wrong; it attempted to split $_ on $Phrase, most likely putting $_ into $Parts[0].my @Parts = split(" ", $Phrase );
I don't see where the uninitialized value warning is coming from. Perhaps before posting you trimmed away the part that really initializes $Phrase. [rhesa++]
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split ( ) is Giving Me a Splitting Headache
by rhesa (Vicar) on May 24, 2006 at 13:01 UTC |