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