in reply to Re^6: Perl command line switches
in thread Perl command line switches

... i tried running the script as follow: perl create_s_t_xml.pl -v 0.1 and it ge , ...

I don't understand this statement. Was there absolutely no output at all? In most cases, output statements like

printf(" <Unc>\n <ProcessArea name=\"%s\">\n", $box); printf(" </ProcessArea>\n </$area>\n"); printf while <COXML> ;
will output by default to STDOUT (which usually is the terminal), but this need not be the case; see select. From the code I've seen, I would expect some output to the terminal, not to a file.

... the output file should be an .XML file which i believe is in the code as "c_vents.xml" ...

The code

my $cvents = "c_vents.xml"; if (-f $cvents) { open(COXML, $cvents ) || die("Cannot Open $cvents"); printf while <COXML> ; }
tries to open the file c_vents.xml for input and then print the contents of the file, probably to STDOUT; see above for the justification for this guess.

In addition to the points made above, I would ask the following questions, some of which have already been asked by others:

Normally I would ask to see the entire script, but I'm afraid to do that because what you have shown us so far is such a terrible mess; I really don't want to start a fight with this tar-baby.


Give a man a fish:  <%-{-{-{-<