Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl Substr

by rovf (Priest)
on Jun 17, 2013 at 09:00 UTC ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2021-10-28 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (96 votes). Check out past polls.

    Notices?