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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.