snoopyjc has asked for the wisdom of the Perl Monks concerning the following question:
As far as I know, "*" is a typeglob representing $ftp %ftp @ftp and ftp, but why are they using that here? Shouldn't the code just say $ftp->{'net_ftp_host'} = $host; ?${*$ftp}{'net_ftp_host'} = $host; # Remote hostname ${*$ftp}{'net_ftp_type'} = 'A'; # ASCII/binary/etc mode ${*$ftp}{'net_ftp_blksize'} = abs($arg{'BlockSize'} || 10240);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Dollar Bracket Star ${*...}
by LanX (Saint) on Dec 27, 2021 at 19:12 UTC | |
by snoopyjc (Initiate) on Dec 27, 2021 at 23:54 UTC | |
Re: Dollar Bracket Star ${*...}
by jdporter (Paladin) on Dec 27, 2021 at 18:35 UTC | |
Re: Dollar Bracket Star ${*...}
by perlfan (Parson) on Dec 27, 2021 at 22:11 UTC | |
by cavac (Prior) on Jan 11, 2022 at 12:56 UTC | |
by choroba (Cardinal) on Jan 11, 2022 at 17:29 UTC | |
by cavac (Prior) on Jan 11, 2022 at 18:03 UTC | |
Re: Dollar Bracket Star ${*...}
by eyepopslikeamosquito (Archbishop) on Dec 28, 2021 at 00:47 UTC | |
Re: Dollar Bracket Star ${*...}
by ikegami (Patriarch) on Dec 28, 2021 at 23:47 UTC |