Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Dynamically alter shtml file

by punch_card_don (Curate)
on Apr 04, 2009 at 16:19 UTC ( [id://755454]=note: print w/replies, xml ) Need Help??


in reply to Re: Dynamically alter shtml file
in thread Dynamically alter shtml file

No, I've been just reading them in directly:
open(FILE, $file); @LINES = <FILE>; close(FILE);
Get 'em via HTTP - of course - perfect. Thanks.

Replies are listed 'Best First'.
Re^3: Dynamically alter shtml file
by punch_card_don (Curate) on Apr 04, 2009 at 17:41 UTC
    use LWP::Simple; $content = get $page_url; #and if you want, @LINES = split(/\n/, $content);
    Works like a charm, although I did have to make dynamic adjustments to image src's, external javascript src's, stylesheet href's, and links on the page to account for the new url of the output page. Thanks again.
Re^3: Dynamically alter shtml file
by Anonymous Monk on Apr 04, 2009 at 16:27 UTC
    append it to text of main file and do it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-28 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found