Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: substr outside of string

by Anonymous Monk
on May 03, 2012 at 05:23 UTC ( #968634=note: print w/ replies, xml ) Need Help??


in reply to Re^2: substr outside of string
in thread substr outside of string

Pardon me if I am wrong, but shouldn't it be

if (length($str) > $index) { $s = substr($str, $index, 1); } else { whatever else }


Comment on Re^3: substr outside of string
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2013-05-25 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (516 votes), past polls