Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to delimiters anyone??

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 '::':

@things = split/::/$file;

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


Comment on Re: delimiters anyone??
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://89088]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-07-31 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls