HTTP::Response->redirects returns a list of redirects. You can either assign that list to an array or another list. The parentheses around $redirect tell Perl that you want $redirect to be seen as list as you in fact are only interested in the first redirect.
In reply to Re^2: URL Redirect
by Corion
in thread URL Redirect
by Todd Chester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |