Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to map question...

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
Black flowers blossom
Fearless on my breath

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://266302]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found