Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2017-03-30 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.