Re: Can you please Help perl readdir multiple folders and files with pre same name

2009-12-18 Thread Robert Wohlfarth
On Fri, Dec 18, 2009 at 7:13 AM, Simphiwe Mkhize wrote: > Here is my solution thank you for help > > .. > > &my_read_dms_booking_folders('c:/bookings') ; > > sub my_read_dms_booking_folders{ > > my ($bookingspath) = @_ ; > > opendir(DIR, "$bookingspath") or die "cant open $bookingspath: $!\n";

Re: Can you please Help perl readdir multiple folders and files with pre same name

2009-12-18 Thread Shlomi Fish
On Friday 18 Dec 2009 15:13:24 Simphiwe Mkhize wrote: > Here is my solution thank you for help > What? Have you read what I wrote to you? You didn't reply. This code still contains many bad and ancient Perl paradigms that I've pointed to you. Please read what I've written and correct your new c

Re: Can you please Help perl readdir multiple folders and files with pre same name

2009-12-18 Thread Simphiwe Mkhize
Here is my solution thank you for help .. &my_read_dms_booking_folders('c:/bookings') ; sub my_read_dms_booking_folders{ my ($bookingspath) = @_ ; opendir(DIR, "$bookingspath") or die "cant open $bookingspath: $!\n"; while(defined(my $folder = readdir(DIR))) { if ($folder eq '.') { n

Re: Can you please Help perl readdir multiple folders and files with pre same name

2009-12-17 Thread Shlomi Fish
On Thursday 17 Dec 2009 17:07:19 Simphiwe Mkhize wrote: > Please Help > > I have multiple folders want to read trough each folder and search for > certian file. I have code which is working fine but does not do what I > want. I dont want to hard code path as it read different folder within You