Just return it from the sub.
In reply to Re: Re: Re: Re: Re: Javascript in Perl and retrieving the HTML source. by bunnyman in thread Javascript in Perl and retrieving the HTML source. by waiterm