Re: Separating a scalar for searching

2002-11-16 Thread Wiggins d'Anconia
perldoc -f split perldoc perlretut You can use split on the comma character to get the individual fields in list context (store to an array or hash for example) and then step through the list searching on each. Or possibly a better approach if your data will allow it, search on the whole line a

Separating a scalar for searching

2002-11-16 Thread Albert L. Lukaszewski
I am developing a search engine for a database I use. The database is static and consists of comma delimited files. After reading the text line-by-line into a scalar, I would like to analyze the data by field. How could I separate the fields or, at least, analyze them separately against a search