Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

list slice

by eXile (Priest)
on Jul 21, 2006 at 18:21 UTC ( #562911=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @stat = stat($file);
    my @localtime = localtime($stat[9]);
    my $year = $localtime[5] + 1900;
    
  2. or download this
    my $year = localtime((stat($file))[9])[5] + 1900;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://562911]
Approved by bart
help
Chatterbox?
[Eily]: well, it allows you to concatenate strings to make a path without knowing if the final \ is already there or not
[Discipulus]: also cd c:/ulisse\\\\\ strawberry \\..\\\\\\ strawberry & pwd runs fine

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-05-24 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?