in reply to Re: Opening multiple log files
in thread Opening multiple log files

Hi sandy105 :) readdir is no fun at all, Path::Tiny on the other hand is fun :)
use Path::Tiny qw/ path /; my @logfiles = path( shift )->children( qr/\.log$/i );

Replies are listed 'Best First'.
Re^3: Opening multiple log files
by sandy105 (Scribe) on Jun 15, 2015 at 09:07 UTC

    I rarely use modules because they are not available on the server where i deploy my scripts.

    Since i run windows at home , I rarely write perl at home for personal purposes .But yeah i installed some modules including Path::Tiny the other day . I plan to explore that and some XML parsing modules as well dabble with OO programming in perl , which i haven't done before.Infact all the lagacy scripts i maintain at my company are huge ~5k lines of code and most scripts are similar to other scripts.