Say I wanted to do something like the Inet control does in VB6:

Inet1.OpenURL(url as string)

How would one accomplish this in either Perl or PHP? Would you have to open your own connection to the URL and get what is returned?