This is a very good idea and should be simple to implement. I'll include
it in my next (very overdue) update. Thanks!
-Lee
Show quoted text> Date: Fri, 7 Mar 2014 05:01:16 -0500
> From: "H.Merijn Brand via RT" <bug-File-Rsync@rt.cpan.org>
> To: undisclosed-recipients: ;
> Subject: [rt.cpan.org #93601] files-from should allow an arrayref
> Reply-To: bug-File-Rsync@rt.cpan.org
> X-RT-Loop-Prevention: rt.cpan.org
> RT-Ticket: rt.cpan.org #93601
> Managed-BY: RT 4.0.18 (
http://www.bestpractical.com/rt/)
> RT-Originator: HMBRAND@cpan.org
> X-RT-Original-Encoding: utf-8
> X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data:
> 2014.3.7.95117
>
> Fri Mar 07 05:01:15 2014: Request 93601 was acted upon.
> Transaction: Ticket created by HMBRAND
> Queue: File-Rsync
> Subject: files-from should allow an arrayref
> Broken in: 0.43
> Severity: Wishlist
> Owner: Nobody
> Requestors: HMBRAND@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=93601 >
>
>
> With a list of files, currently, I'd have to
>
> my @files = list_files ();
> my $status = $rsn->exec ({
> "dest" => "$host:$dir/",
> "source" => "$dir/",
> "files-from" => "-",
> "infun" => sub { say for @files },
> });
>
> I think it would be swell to be able to do
>
> my $status = $rsn->exec ({
> "dest" => "$host:$dir/",
> "source" => "$dir/",
> "files-from" => [ list_files () ],
> });
>