http://www.perlmonks.org?node_id=294163


in reply to Re: Re: Re: Re: Javascript in Perl and retrieving the HTML source.
in thread Javascript in Perl and retrieving the HTML source.

Just return it from the sub.