in reply to Re^3: Reading every file in a directory
in thread Reading every file in a directory
Oh 1 note I just discovered, I believe the sample here that you posted:
use strict; use warnings; my $directory = '.'; for my $YMLfile (<"$directory/*.yml">) { open my $fh, '<', $YMLfile or die $!; while (<$fh>) { # process the file's contents } close $fh; }
That code is good for opening the directory, I'm super grateful :) ! now reading and parsing the files is the next main issue for this script, the login line in the comment I last posted needs to be assigned to a value that can be read, then the login: followed by a space, need to be removed so it only shows the timestamp (the parsing part) then comparing will be super easy. Any ideas there ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Reading every file in a directory
by Athanasius (Archbishop) on Sep 29, 2012 at 04:27 UTC | |
Re^5: Reading every file in a directory
by Kenosis (Priest) on Sep 29, 2012 at 04:44 UTC |
In Section
Seekers of Perl Wisdom