http://qs321.pair.com?node_id=11118734


in reply to Re: Perl: Extracting the value from --rsync-path=PROGRAM key/value pair
in thread Perl: Extracting the value from --rsync-path=PROGRAM key/value pair

Awesome, thanks. I was wondering if Getopt could be useful in this situation. I would have had no idea about those options you used, though. Very nice.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: Perl: Extracting the value from --rsync-path=PROGRAM key/value pair

Replies are listed 'Best First'.
Re^3: Perl: Extracting the value from --rsync-path=PROGRAM key/value pair
by AnomalousMonk (Archbishop) on Jun 30, 2020 at 21:48 UTC
    I would have had no idea about those options ...

    I think it's called Reading The Fine Manual. :)


    Give a man a fish:  <%-{-{-{-<

      ..and what a Fine manual it is.
Re^3: Perl: Extracting the value from --rsync-path=PROGRAM key/value pair
by perlfan (Vicar) on Jul 02, 2020 at 05:36 UTC
    Not a bad thought, but it adds maintenance overhead to your script. This may present portability issues if rsync has different options somewhere - or more likely, a newer version of rsync adds or deprecates an option.