Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Using -M to test age of file

by VSarkiss (Monsignor)
on Aug 22, 2003 at 15:23 UTC ( [id://285810]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $dir (@directories)
    {
        foreach my $file (@filenames)
        {
            $age = -M $file;
        ....
    
  2. or download this
    foreach my $dir (@directories)
    {
        foreach my $file (@filenames)
        {
            $age = -M "$dir/$file";  # see the difference?
        ....
    
  3. or download this
    foreach my $dir (@directories)
    {
        chdir $dir or die "Couldn't chdir to $dir: $!\n";
    ...
            ....
        }
        chdir ".." or die "Help, I stranded myself";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-16 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found