in reply to Re: Get HTML source code
in thread Get HTML source code

The solutions by ickyb0d and Spidy require that I add a line EVERYTIME I have a print!
They were the first solutions that came to me, but I wanted to find out a way to avoid doing them...

Replies are listed 'Best First'.
Re^3: Get HTML source code
by Spidy (Chaplain) on Nov 04, 2005 at 17:43 UTC
    Well, you'd just replace your print lines with
    $codeVariable .= qq ~ ~; #whatever was going to be printed goes inside + the quotes
    And then at the very end of the script, you'd have:
    print $codeVariable;
    It's just one extra line added.
      You're right.
      But I don't want to use that solution because my script takes lots of time running, and the way it is now it shows up as it is processing.
      And if I do as you describe I will only see the HTML page at the end.
      Thanks anyway... =)