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

Re^2: accessing a part of a string

by Eliya (Vicar)
on May 18, 2012 at 11:30 UTC ( #971282=note: print w/ replies, xml ) Need Help??


in reply to Re: accessing a part of a string
in thread accessing a part of a string

substr( $string, 0, length($string) - 6 );

can also be written as

substr( $string, 0, -6 );


Comment on Re^2: accessing a part of 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://971282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-12-27 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls