Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 lurking in the Monastery: (8)
As of 2014-09-24 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (246 votes), past polls