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

Re: list slice

by imp (Priest)
on Jul 21, 2006 at 22:50 UTC ( #562971=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    printf "%04s-%02s-%02s\n", map { @$a ? $_ + shift @$a : $_} (localtime
    +,$a=[1900,1])[5,4,3];
    
  2. or download this
    (localtime,$a=[1900,1])
    
  3. or download this
    (localtime,$a=[1900,1])[5,4,3]
    
  4. or download this
    map { 
       @$a 
         ? $_ + shift @$a 
         : $_
    } (localtime,$a=[1900,1])[5,4,3];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2016-06-28 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (359 votes). Check out past polls.