in reply to Addressing object variables

How do I access that variable
By not quoting it:
print "Saved data to ", $response->filename, "\n\n";

(and why is it different inside of the print statement)
As I said, because it's inside quotes.