Welcome to the Monastery PerlMonks

by Cody Pendant (Prior)
 on Jun 01, 2004 at 22:17 UTC Need Help??

Here's my code:
$str = 'msxsl C:\path\foo.xml C:\path\bar.xsl -o C:\path\output.html'; $str;
[download]
Now, if I run that with backticks, I get the expected result. The transform happens and there's no error. If I deliberately break it:
$str = 'msxsl C:\path\foo.xml C:\BAD-path\bar.xsl -o C:\path\output.ht +ml'; $str;
[download]
Now, if I run it, I need to trap the error:
Error occurred while loading document 'C:\BAD-path\bar.xsl'.

Code:   0x800c0006
The system cannot locate the object specified.
[download]

Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2016-10-26 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
How many different varieties (color, size, etc) of socks do you have in your sock drawer?

Results (336 votes). Check out past polls.