|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: delimiters anyone??by damian1301 (Curate) |
| on Jun 16, 2001 at 23:26 UTC ( #89088=note: print w/ replies, xml ) | Need Help?? |
|
You would slurp the whole file in a scalar variable (there are two ways to do this: ($file) = <FH>; or undef $/; $file = <FH>;). Then you just follow srawl's advice and split it on '::':
Then you have in $things[0] the HTML to be edited, and the other things it will split on. Tiptoeing up to a Perl hacker. Dave AKA damian
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||