in reply to Re: Perl command line switches
in thread Perl command line switches
###################################################################### ###################################################################### 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_tagec_xml_hdr(); require "../spr_uc_events.v$version.pl"; foreach my $box (@SPRBoxes) { printf(" <Uncore>\n <ProcessorArea name=\"%s\">\n", $box); &create_tagec_recs(\%SPR_UCEventList, $gen_public, $box); printf(" </ProcessorArea>\n </$area>\n"); } my $coreevents = "core_events.xml"; if (-f $coreevents) { open(COREXML, $coreevents ) || die("Cannot Open $coreevents"); printf while <COREXML> ; } &print_tagec_xml_tail(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl command line switches
by Corion (Patriarch) on Mar 27, 2020 at 16:43 UTC | |
by Irakro1997 (Novice) on Mar 27, 2020 at 17:01 UTC | |
by Corion (Patriarch) on Mar 27, 2020 at 17:19 UTC | |
by Irakro1997 (Novice) on Mar 27, 2020 at 17:35 UTC | |
by AnomalousMonk (Archbishop) on Mar 27, 2020 at 20:16 UTC | |
by bliako (Abbot) on Mar 27, 2020 at 18:12 UTC | |
by hippo (Archbishop) on Mar 27, 2020 at 19:33 UTC | |
by Irakro1997 (Novice) on Mar 27, 2020 at 17:04 UTC |