Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 cooling their heels in the Monastery: (7)
As of 2018-08-16 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (167 votes). Check out past polls.

    Notices?