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

Re: Perl Substr

by rovf (Priest)
on Jun 17, 2013 at 09:00 UTC ( [id://1039301]=note: print w/replies, xml ) Need Help??


in reply to Perl Substr

index tells you the position of $s2 in $s1. length tells you the length of $s2, which you need for telling substr where to start the extraction.

With

perldoc -f index
etc., you get a description of these functions.

-- 
Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

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

    No recent polls found