Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Last index use in array slice

by LanX (Canon)
on Dec 03, 2012 at 12:41 UTC ( #1006871=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<123>  $str =join '', a..h
     => "abcdefgh"
    ...
     
      DB<125> @rest
     => ("e", "f", "g", "h")
    
  2. or download this
      DB<126> $index=4
     => 4
    ...
     
      DB<128> @rest
     => ("e", "f", "g", "h")
    
  3. or download this
      DB<129> ( ( (undef) x $index ) , @rest) = split //, $str
    Can't modify repeat (x) in list assignment at (eval 65)[multi_perl5db.
    +pl:638] line 2, at EOF
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (17)
As of 2014-12-18 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (51 votes), past polls