in reply to Net::FTP force IPV4

Not sure about Net::FTP, but most modules I've worked with respected the $IPV environment variable. So, before running your program (from a *nix box)
export IPV=4
could work. Or, to set the environment only for the program:
IPV=4 /path/to/the/program

The other possible values are 6 and *.

Update: The variable is documented in Net::Server::Proto, so most probably not going to help with Net::FTP.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Net::FTP force IPV4
by Fletch (Bishop) on Jun 28, 2023 at 01:37 UTC

    My duckduckgofu is failing me; do you have a pointer to where this var is documented? Not doubting but just wondering where this happens (my hunch is it’s glibc magic but my searching is coming up blank).

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      Oh sorry, it seems to come from Net::Server::Proto, so it doesn't apply to Net::FTP.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]