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?
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, i write Code : print a_perl_func(Pg_B);
Browser Output :
Meanwhile i m still standing in
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