Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Duplicating HTML files

by dimmesdale (Friar)
on Jul 23, 2002 at 17:29 UTC ( [id://184507]=note: print w/replies, xml ) Need Help??


in reply to Duplicating HTML files

What do you mean by dubplicate and change?

Well, here's a generic response, though the more info as to what you're doing the better replies you can get (and the monks here can be really helpful).

You could open the file, and (if its not to big) slurp it into an array, then to some changes based on your needs then save the array to a file (possibly use tie?).

You could use File::Copy to copy the file, open in (with perl/by hand?) to do some editing.

#some code to show what I was talking about ... $file = 'your/path/or/is\it\this\way'; # open and slurp in open(FH,$file) or die "make a helpful die statement here"; @lines_of_file = <FH>;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found