Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

perlfunc:utime

by gods
on Aug 24, 1999 at 22:41 UTC ( #172=perlfunc: print w/replies, xml ) Need Help??

utime

See the current Perl documentation for utime.

Here is our local, out-dated (pre-5.6) version:


utime - set a file's last access and modify times



utime LIST



Changes the access and modification times on each file of a list of files. The first two elements of the list must be the NUMERICAL access and modification times, in that order. Returns the number of files successfully changed. The inode modification time of each file is set to the current time. This code has the same effect as the `` touch'' command if the files already exist:

    #!/usr/bin/perl
    $now = time;
    utime $now, $now, @ARGV;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[james28909]: id just rename the subrouties perl what kind of data they are getting. something easy to remember too. like if get_data were returning movies titles, rename get_data to movies or movie_titles or get_movie_titles.
[james28909]: s/perl/per/
[james28909]: but i dont really know what your end goal is. if it works dont fix it lol
[Lady_Aleena]: james28909, I use get_data in a subroutine called movies.

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