in reply to Re^3: Redirect HTML::TreeBuilder to file
in thread Redirect HTML::TreeBuilder to file

Thanks for your response marto but I ran the code with the line commented out first and it still printed the output on the screen before I added the open and print code.

  • Comment on Re^4: Redirect HTML::TreeBuilder to file

Replies are listed 'Best First'.
Re^5: Redirect HTML::TreeBuilder to file
by marto (Cardinal) on Sep 25, 2018 at 13:51 UTC

    As I said, your open and print works fine, you just copied an example someone gave you, which prints a string to a file. You need to print the content of your variable to the file, rather than a fixed string. Did you look at the documentation I linked to? This is what I mean about copying and pasting code without trying to understand what it does.