OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [perl/] [temp.pl] - Blame information for rev 48

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 43 alirezamon
#!/usr/bin/perl -w
2 48 alirezamon
 
3
# a perl getopts example
4
# alvin alexander, http://www.devdaily.com
5
 
6 38 alirezamon
use strict;
7 48 alirezamon
use Getopt::Std;
8
 
9
# declare the perl command line flags/options we want to allow
10
my %options=();
11
getopts("hj:ln:s:", \%options);
12
 
13
# test for the existence of the options on the command line.
14
# in a normal program you'd do more than just print these.
15
print "-h $options{h}\n" if defined $options{h};
16
print "-j $options{j}\n" if defined $options{j};
17
print "-l $options{l}\n" if defined $options{l};
18
print "-n $options{n}\n" if defined $options{n};
19
print "-s $options{s}\n" if defined $options{s};
20
 
21
# other things found on the command line
22
print "Other things found on the command line:\n" if $ARGV[0];
23
foreach (@ARGV)
24
{
25
  print "$_\n";
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.