Git Talk by Randal

2009-12-18 Thread Parag Kalra
Hello All, I know most of the big guns on this mailing list may already know this but still felt like sharing this with you all specially for the beginers like me. :) A nice, very informative and well presented talk on Git given by our own old gold Randal :) http://www.youtube.com/watch?v=8dhZ9

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: being smart about script structure

2009-12-18 Thread Bob McConnell
From: Peter Scott On Wed, 16 Dec 2009 17:47:16 -0600, Bryan R Harris wrote: >> Okay, here's one I struggle with often -- is one of these better than >> the other? >> >> ** >> A. >> if ( isFlat($tire) ) { changeTire($tire); } >> >> B. >> chec

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: capture error - the better way?

2009-12-18 Thread Philip Potter
2009/12/18 Peter Scott : > On Wed, 16 Dec 2009 10:09:38 +, Philip Potter wrote: >> Yes, it can't fold the constant. That's no excuse for changing the >> behaviour of the program. What it should do is what I wrote in my >> previous email -- replace it with code that raises a runtime exception >>