Help for this page

Select Code to Download


  1. or download this
    while ( <INFILE> ) {
        next if not /ver = '(.*?)'/;
    ...
        close INFILE;
        last;
    }
    
  2. or download this
    {
        open my $fh, '<', $filename
    ...
            last;
        }
    }
    
  3. or download this
    use List::Util qw( first );
    
    ...
    
        first { /ver = '(.*?)'/ } <$fh>;
    };