Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by cheekuperl (Monk)
on Sep 03, 2012 at 03:28 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found