I am stumped with Procmail again. This time trying to have an argument
expanded before being passed to a called program.
I have a working recipe, like this
:0 wfb
| perl -M"Text::Autoformat" -e'autoformat{left=>1, right=>65, all=>1}'
which works just fine by calling the Perl Module Text::Autoformat.
I want to make the right margin a variable, like this
RMARGIN=65
:0 wfb
| perl -M"Text::Autoformat" -e'autoformat{left=>1, right=>$RMARGIN, all=>1}'
The theory seems to be to wrap double quotes around the arguments, and
sometimes maybe double quotes around the single quotes.
I do believe that I have tried all possible combinations of wrapping the
above with various combinations of quotes without success.
Is the above possible ?
Thanks for any insights.
mark
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail