On Wednesday, October 24, 2001, at 11:38 AM, Scott Lanning wrote: > On Wed, 24 Oct 2001, Tom Mornini wrote: >> 1 <Perl> >> 2 $ErrorLog = >> "|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR"; >> 3 </Perl> >> >> 4 ErrorLog "|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl >> ERROR" > [snip] >> When I use the <Perl> section (which I need to allow the path to >> spread_from_stdin.pl to be dynamic at runtime) I receive this error: >> >> [Wed Oct 24 09:52:25 2001] [error] <Perl>: ErrorLog takes one argument, >> The filename of the error log > > On line 4, you passed one argument delimited by quotation marks. > On line 2, you passed two arguments: > 1) |/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl > 2) ERROR > so it seems you need to escape the space between them somehow > (I guess by a backslash, or put single quotes around the double > quotes, but I didn't test it).
Yes, you're the second person to mention it, but you said it more clearly... This will work... $ErrorLog = q["|/home/tmornini/Source/ewingz/bin/spread_from_stdin.pl ERROR"]; or qq[] if you need interpolation. (which I do) -- -- Tom Mornini -- InfoMania Printing & Prepress