Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 imbibing at the Monastery: (7)
As of 2015-07-06 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls