[Pmwiki-users] page revisions not working
Thu Oct 9 04:28:33 CDT 2003
On Wed, Oct 08, 2003 at 10:33:46AM -0500, Clinton R. Nixon wrote:
> Jonathan Scott Duff said:
> > This does not do what you think it does. The entire while loop is
> > essentially a NOOP since you've opened the IN file handle as an
> > *output* pipe.
> > Why not just use system() from within perl?
> > system "/usr/bin/patch", $q->param('txtfile'), $q->param('patfile');
> > And you should check the return value of your open() or system() to
> > see if it succeeded or not.
> Good call. It was a quick and dirty 5-minute solution, works, and was
> posted in order that someone else might improve it and use it when they
> find themselves in the same situation.
Apart from those details, it is indeed a clever workaround, and a good
real-life example of a useful Web Service.
Per la libert? di Impresa: http://www.scriptaworks.com/swpat/
Freedom for Business: http://swpat.ffii.org
More information about the pmwiki-users