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

weilies has asked for the wisdom of the Perl Monks concerning the following question:

hi, i had a situation here. Is it possible for me to get a return of url by a perl command?
E.g.
Pg A(currently)->Pg B->Pg C->....->Pg D '->' means 'redirect' Is there a perl function can retrieve the URL of Pg D from Pg A?
Like i m currently in Pg A, then inside the a.pl, i write Code : print a_perl_func(Pg_B);
Browser Output : http://www.domain.com/d.pl
Meanwhile i m still standing in a.pl
Can perl do that? What i hope to get is the URL of the final landing pg, no matter how much pg redirected. But it sounds crazy for me. :~o
Thanks