http://qs321.pair.com?node_id=11140483


in reply to Re: nondestructive way to look at a character in a string
in thread nondestructive way to look at a character in a string

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}

Replies are listed 'Best First'.
Re^3: nondestructive way to look at a character in a string
by ikegami (Patriarch) on Jan 15, 2022 at 21:47 UTC

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

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

Re^3: nondestructive way to look at a character in a string (d:/dev/tty)
by Anonymous Monk on Jan 16, 2022 at 10:11 UTC