Test-Parser

 view release on metacpan or  search on metacpan

scripts/parse_iozone  view on Meta::CPAN


    INPUT:  foreach my $input (@ARGV) {
        my $retval = Test::Parser::END_OF_RECORD;
        my $input_stream;

        # If the user has specified multi-record operation, we can't
        # rely on T:P:iozone's file open code and must work with 
        # streams, because we'll be creating multiple T:P:iozone 
        # objects per file.  

        # Open the file for streaming
        if (ref($input)) {
            $input_stream = $input;
            warn "Parsing input stream...\n" if $opt_debug>0;
        } elsif (-f $input) {
            if (! open(FILE, "<$input")) {
                warn "Could not open $input for reading: $!\n";
                next INPUT;
            }
            $input_stream = \*FILE;
        } else {



( run in 0.458 second using v1.01-cache-2.11-cpan-4d50c553e7e )