Help for this page

Select Code to Download


  1. or download this
    my $txtfile = $prefix . ".txt";
    my $txtfile1 = $prefix . "1.txt";
    ...
    } else {
     # no file was found
    }
    
  2. or download this
    if ( -f $txtfile || -f $txtfile1 ) {
     if ( -f $txtfile ) { open(FILE, "$txtfile"); }
    ...
    } else {
     # no file was found
    }