Help for this page

Select Code to Download


  1. or download this
        my @fields = split(/\|/);
        my $name = $fields[0];
    ...
        my $status = $fields[3];
        $status =~ s/\s*//;
        $status =~ s/\s*$//;
    
  2. or download this
        my ( $name, $value, undef, $status ) = split /\|/;
        s/^\s+//, s/\s+$// for $name, $value, $status;