in reply to reading from a file and splitting
/==/
Then, you've broken the line into three parts: the part before the ==, the ==, and the part after. Assuming that == matches in the line, you can access these parts thus:
$` = the part before the ==
$& = "=="
$' = the part after the ==
the first example of split may be more appropriate for this type of thing though.
okay apparently I can't read questions either. Didn't see you _just_ wanted string(s) beginning with hi. My example would be more appropriate if, for some reason, you wanted this plus other, similarly formatted data;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: reading from a file and splitting
by jweed (Chaplain) on Jan 17, 2004 at 01:39 UTC | |
by Eva (Initiate) on Jan 18, 2004 at 00:01 UTC |