in reply to Split ( ) is Giving Me a Splitting Headache

You're missing the first argument, what to split on,

my @Parts = split(" ", $Phrase );
Your usage was not wrong; it attempted to split $_ on $Phrase, most likely putting $_ into $Parts[0].

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
    $_ is undefined.