views:

72

answers:

1

I'm generating a large XML document via a Perl script in a command window, however, currently it's printing the document to standard out. The Perl script modifiers do not have a switch to allow to write to a file, so I'm curious how to take an input string and write to a file via the base command shell.

My current order of operations:

perl dtd2xsd.pl someBigSchema.dtd

The above returns the requested XSD contents, I'm just stuck on getting that into a file.

+7  A: 

Simply redirect the output to a file.

perl d2dxsd.pl someBigSchema.dtd > somefile.xsd
jamessan
Much appreciated ;)
Alexis Abril