If it's as simple as you're making it sound, the "split" function is for
you.

@arrayName = split(/delimiter/, $string);

So your new array is @arrayName
@arrayName[0] is what's before the delimiter ...
@arrayName[1] is what's after it.

put your delimiting character in between the forward slashes
you may need to escape it with a backslash if it's a reserved character

and of course $string is the contents of the original file.

Bill

-----Original Message-----
From: Jessee Parker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Finding a Pattern in a File


Sorry to make this a little clearer, I want to find the delimiter and then
process what's past the delimiter. So all the html code would go into a
variable and then all the text would go into a different variable.  Sorry
for the confusion.

Jessee

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to