B 代表“Inout"
I 代表“Input"
O代表"Output"
然后出處它們各自冒號(hào)前的字符即可
但是B冒號(hào)前有“Power"和"Ground"的區(qū)別
謝謝作者: dahe_1984 時(shí)間: 2013-02-22 12:59
$ perl yuama.pl
A I
Y O
HG B Inout
HV B Inout
he@he-THINK ~/manson/Image
$ cat yuama.pl
#!perl
my $str = '*.PININFO A:I Y:O HG:B HV:B';
my @array = split /\s+/, $str;
my %hash = (
B => 'Inout',
I => 'Input',
O => 'Output',
HV => 'Power',
HG => 'Ground',
);