Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Anonymous Monk
on Jan 15, 2022 at 20:06 UTC ( #11140480=note: print w/replies, xml ) Need Help??


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.]

Log In?
Username:
Password:

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

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



    Results (72 votes). Check out past polls.

    Notices?