in reply to Split function

@turkey = split(/\|/, $stuffing);
The | is backslashed so that | isn't termed as an or condition. That splits each string ($stuffing) and places it into an array @turkey.
Update:
Hmm. If you want to throw away "blank" values.
@turkey = split(/\|+/, $stuffing);

Update for MeowChow: Well, you need to do some mixing and chopping, but I find the chop() function cuts too thin and the consistancy winds up too soft. I prefer some chunks.

Replies are listed 'Best First'.
Re: Re: Split function
by MeowChow (Vicar) on Feb 08, 2001 at 05:29 UTC
    You can make a turkey by splitting stuffing? The things you learn here... :-)