in reply to Search/Replace Character

The 3rd argument of substr is a length, not another offset! You should be using substr($line,11,2)="  ";


Unless I state otherwise, my code all runs with strict and warnings

Replies are listed 'Best First'.
Re^2: Search/Replace Character
by rhiannasilel (Initiate) on Apr 17, 2008 at 18:52 UTC
    Aha! Thank you so much. So it's the same logic as it would be with awk, then? Got it. It's working perfectly now.