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

Re: Is this the most elegant way to code directory lookup?

by jasonk (Parson)
on Sep 29, 2006 at 16:29 UTC ( [id://575569]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $srcdir ='/var/local/some_dir';
    my $mtime = 1;
    ...
        if ( $? != 0 ) { die "Gzip failed" }
        print "$file archived in $destdir\n";
    }
    
  2. or download this
    use Path::Class qw( dir );
    my $srcdir = dir( '/var/local/some_dir' );
    ...
        if ( $? != 0 ) { die "Gzip failed" }
        print "$file archived in $destdir\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-25 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found