sorry i am not sure i understood your response ...so which argument should i pass to this script to generate the .xml file ?
###################################################################### sub main { my $gen_public = 0; my $version = "0.1"; while ($arg = shift @ARGV) { $gen_public = 1 if ($arg eq "-p"); if ($arg eq "-v") { $version = shift @ARGV; $XLFILE =~ s/v0\.1/v$version/g; } } &print_t_xml_hdr(); require "../vents.v$version.pl"; foreach my $box (@SBoxes) { printf(" <Unc>\n <ProcessArea name=\"%s\">\n", $box); &create_t_recs(\%P_UCventList, $gen_public, $box); printf(" </ProcessArea>\n </$area>\n"); } my $cvents = "c_vents.xml"; if (-f $cvents) { open(COXML, $cvents ) || die("Cannot Open $cvents"); printf while <COXML> ; } &print_t_xml_tail(); }
In reply to Re^4: Perl command line switches
by Irakro1997
in thread Perl command line switches
by Irakro1997
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |