I am new to Mojo::UserAgent (https://metacpan.org/pod/Mojo::UserAgent) , I am trying to explore its functions.
I found this function on the docs :
local_address
my $address = $ua->local_address;
$ua = $ua->local_address('127.0.0.1');
Local address to bind to.
what is the use cases of using local_address method isn't this let you write shortcuts like this :
my $res = $ua->get('\index.html')->result;
instead of
my $res = $ua->get('127.0.0.1:80\index.html')->result;
or I am totally wrong and this method used on different use cases?