in reply to Search for string between specific character numbers in a line

If you are slurping the entire file, use substr:

if( substr( $file, 294, 6 ) =~ /.../ ) { print 'found'; } else { print 'not found'; }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy
  • Comment on Re: Search for string between specific character numbers in a line
  • Download Code