Help for this page

Select Code to Download


  1. or download this
    my $CPU = 'Intel(R) Xeon(R) CPU          X5660  2.80GHz ';
    # field:    0        1       2  3..11     12  13 14       # using / /
    # field:    0        1       2            3      4        # using / +/
    
  2. or download this
    my @CPU_SPLIT = split / +/, 'Intel(R) Xeon(R) CPU          X5660  2.80
    +GHz ';
    
    ...
    
    # 3 - feed the whole array
    print join ' ', @CPU_SPLIT; print "\n";