in reply to nondestructive way to look at a character in a string

substr
  • Comment on Re: nondestructive way to look at a character in a string

Replies are listed 'Best First'.
Re^2: nondestructive way to look at a character in a string
by BernieC (Pilgrim) on Jan 15, 2022 at 20:54 UTC
    Of course. It slipped my mind and when I was flailing around trying to remember it I ran across:
    D:\>perldoc -f substr No Perl script found in input
    And I see my problem now -- for *some* reason, "perldoc -f" does not work from a command prompt when it is in the root of D:. That's for *anything: nothing works from D:. What a crazy thing -- I've tried it cd'ed to a dozen other directories on various other filesystems and it works perfectly.. but not from d:. oh well, now that I see what I did wrong. thanks for reminding my fuzzy mind {and prodding me to realize that perldoc wasn't working in this odd way}

      It's available online at perldoc.perl.org. To wit, substr.

      [doh, this was basically indicated already. I'm being distracted.]