Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: list slice

by ikegami (Pope)
on Jul 21, 2006 at 18:40 UTC ( #562914=note: print w/ replies, xml ) Need Help??


in reply to list slice

By going down this path, you are preventing yourself from checking if stat returned an error.


Comment on Re: list slice
Download Code
Re^2: list slice
by rir (Vicar) on Jul 21, 2006 at 21:20 UTC
    This is not a path I recommend; it may fail for time travelers:
    my $year = ( ( localtime( ( (stat("."))[9] || die "stat die" ) ) )[5] || die "localtime die" ) + 1900;
    Be well,
    rir

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2015-07-07 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls