Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: nondestructive way to look at a character in a string

by BernieC (Pilgrim)
on Jan 15, 2022 at 20:54 UTC ( #11140483=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140483]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-05-20 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?