Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Converting python list range expressions to perl

by kcott (Archbishop)
on Dec 04, 2022 at 03:00 UTC ( [id://11148543]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
               ? join('', splice @temp_array, $offset, $length)
               : join('', splice @temp_array, $offset);
    }
    
  2. or download this
    1..4
    ok 1 - Testing: [:3]
    ok 2 - Testing: [:-3]
    ok 3 - Testing: [3:]
    ok 4 - Testing: [-3:]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found