Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Cody Pendant's scratchpad

by Cody Pendant (Prior)
on Jun 01, 2004 at 22:17 UTC ( #358679=scratchpad: print w/ replies, xml ) Need Help??

Here's my code:
$str = 'msxsl C:\path\foo.xml C:\path\bar.xsl -o C:\path\output.html'; `$str`;
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`;
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.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2015-05-29 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (591 votes), past polls