Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Slicing an array variable with a -1 or any negative number doesn't work

by ikegami (Pope)
on Nov 29, 2017 at 18:31 UTC ( #1204547=note: print w/replies, xml ) Need Help??


in reply to Re^2: Slicing an array variable with a -1 or any negative number doesn't work
in thread Slicing an array variable with a -1 or any negative number doesn't work

Then you'll be disappointed to learn about substr($s, 0, -1) and slice(@a, 0, -1)

Replies are listed 'Best First'.
Re^4: Slicing an array variable with a -1 or any negative number doesn't work
by Anonymous Monk on Nov 29, 2017 at 18:48 UTC
    You mean splice(@a, 0, -1)? What makes you think I don't know about it?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1204547]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-02-24 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (310 votes). Check out past polls.

    Notices?