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

Re^2: Converting python list range expressions to perl

by ibm1620 (Hermit)
on Dec 04, 2022 at 17:13 UTC ( [id://11148550]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
        }
        return [@$aref[$start .. $stop]];
    }
    
  2. or download this
    $ ./test
    1..7
    ...
    ok 5 - Testing: [-3:-1]
    ok 6 - Testing: [-3:-3]
    ok 7 - Testing: [3:-1]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found