in reply to title sub

I don't know about anyone else, but I have no clue what you are trying to do. Care to be more consise? Are you saying that when the HTML page has <TITLE>HELLO<TITLE> you want it to display to the client as <TITLE>GOODBYE<TITLE> ?

Cheers,
KM

Replies are listed 'Best First'.
RE: Re: title sub
by Anonymous Monk on Jun 05, 2000 at 22:37 UTC
    Tks for the speedy reply. Yes, i have an html file, which i'd like to use as a template of sorts. I'd like to be able to substitute just what's between the title tags; just as your example mentioned. I'd like to change from <TITLE>HELLO</TITLE> to <TITLE>GOODBYE</TITLE>, and be able to edit to the file directly, instead of printing to the screen.
RE: Re: title sub
by Anonymous Monk on Jun 05, 2000 at 22:38 UTC
    Tks for the speedy reply. Yes, i have an html file, which i'd like to use as a template of sorts. I'd like to be able to substitute just what's between the title tags; just as your example mentioned. I'd like to change from <TITLE>HELLO</TITLE> to <TITLE>GOODBYE</TITLE>, and be able to edit to the file directly, instead of printing to the screen.
      If you want to change the file directly, the proper technique is to:
      • open a Read/Write filehandle to the file
      • read the file into a scalar
      • use a supplied regex to modify it
      • print the scalar to the filehandle
      The node How do I write to a file? in tue Q&A section on files may be of assistance.