Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: how to to find the "/" in a string

by cheekuperl (Monk)
on Sep 03, 2012 at 03:28 UTC ( #991345=note: print w/ replies, xml ) Need Help??


in reply to how to to find the "/" in a string

how to to find the "/" in a string

perl -e '$str=q (usr/bin); print index($str,q(/))."\n";'
The output is
3


Comment on Re: how to to find the "/" in a string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-03-06 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (155 votes), past polls