Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Make things a *little* easier

by John M. Dlugosz (Monsignor)
on Sep 11, 2002 at 20:46 UTC ( #197071=note: print w/replies, xml ) Need Help??


in reply to Make things a *little* easier
in thread a farewell to chop

Copy all except the last vs remove the last; the latter could be much more efficient for a large string.
substr ($str, -1, 1, '');
is what I was thinking.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2020-02-18 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (75 votes). Check out past polls.

    Notices?