bladx has asked for the wisdom of the Perl Monks concerning the following question:
How can I use the split function to find how many variables to split specified data from a slice from a database with data such as: key|title|date|author|news? I know how to do it with the known columns needed for splitting lines of data, but how can I do this when I don't know how many variables I will need for a line from a given database? Thank you for any help!
Andy Summers
Andy Summers
|
---|
Replies are listed 'Best First'. | |
---|---|
(shockme) Re: How can I use 'split' with unknown amount of variables?
by shockme (Chaplain) on Dec 30, 2001 at 08:34 UTC | |
Re: How can I use 'split' with unknown amount of variables?
by rbc (Curate) on Dec 30, 2001 at 08:43 UTC | |
by steves (Curate) on Dec 30, 2001 at 12:07 UTC | |
by mrbbking (Hermit) on Dec 30, 2001 at 18:34 UTC | |
Re: How can I use 'split' with unknown amount of variables?
by marmot (Novice) on Dec 30, 2001 at 23:02 UTC |
Back to
Seekers of Perl Wisdom