Just another Perl shrine | |
PerlMonks |
Re: map question...by bbfu (Curate) |
on Jun 16, 2003 at 21:07 UTC ( [id://266302]=note: print w/replies, xml ) | Need Help?? |
As djantzen said, the map is building a list whose elements are alternatingly the arguments from the command line and 1's. What this appears to accomplish is that it allows you to pass strings such as 'FlattenTree' to the script and have them be interpreted correctly by rget(). For example, the invocation: [johnsca@cory johnsca]$ rget FlattenTree SymlinkIgnore Will in effect call rget() as: $ftp->rget(FlattenTree => 1, SymlinkIgnore => 1); Which is how Net::FTP::Recursive expects the options to be passed. See the docs for Net::FTP::Recursive for more info on available options. bbfu
In Section
Seekers of Perl Wisdom
|
|