Re: Coding best practices

2009-08-13 Thread Steve Bertrand
Chas. Owens wrote: > On Fri, Aug 14, 2009 at 00:21, Uri Guttman wrote: > snip >> i started with punch cards. print was all you had besides thorough and >> deep analysis of your code. that is a talent lost on too many coders >> today. and even today proper use of print is better than any debug >> to

Re: Improvements to http://perl-begin.org/

2009-08-13 Thread Steve Fink
On Thu, Aug 13, 2009 at 10:38 AM, Shlomi Fish wrote: > We hope you enjoy the new site. If you like it, please recommend it to > your friends - if you don't - let us know and we'll see what we can do. Unless > mentioned otherwise, all the material on http://perl-begin.org/ is made > available under

Re: Coding best practices

2009-08-13 Thread Steve Bertrand
Chas. Owens wrote: > On Fri, Aug 14, 2009 at 00:21, Uri Guttman wrote: > snip >> i started with punch cards. print was all you had besides thorough and >> deep analysis of your code. that is a talent lost on too many coders >> today. and even today proper use of print is better than any debug >> to

Re: Coding best practices

2009-08-13 Thread Shlomi Fish
On Friday 14 August 2009 07:21:00 Uri Guttman wrote: > > "SB" == Steve Bertrand writes: > >> i don't use it but i know plenty who do and it seems to be a good > >> idea. i would recommend it for most perl hackers and if you want to > >> enforce a known set of coding styles. i strongly en

Re: Coding best practices

2009-08-13 Thread Uri Guttman
> "CO" == Chas Owens writes: CO> On Fri, Aug 14, 2009 at 00:21, Uri Guttman wrote: CO> snip >> i started with punch cards. print was all you had besides thorough and >> deep analysis of your code. that is a talent lost on too many coders >> today. and even today proper use of print

Re: Coding best practices

2009-08-13 Thread Chas. Owens
On Fri, Aug 14, 2009 at 00:21, Uri Guttman wrote: snip > i started with punch cards. print was all you had besides thorough and > deep analysis of your code. that is a talent lost on too many coders > today. and even today proper use of print is better than any debug > tool. but it is still a skill

Re: Coding best practices

2009-08-13 Thread Steve Bertrand
Uri Guttman wrote: >> "SB" == Steve Bertrand writes: > > SB> Uri Guttman wrote: > >> > >> i wish i could understand my comments better! :) > > SB> Your name came up in "Perl Best Practices" (along with many > SB> others). You also made me realize that the use of $_ in a > SB> pa

Re: Coding best practices

2009-08-13 Thread Uri Guttman
> "SB" == Steve Bertrand writes: SB> Uri Guttman wrote: >> >> i wish i could understand my comments better! :) SB> Your name came up in "Perl Best Practices" (along with many SB> others). You also made me realize that the use of $_ in a SB> particular code snip was not a good id

Re: Coding best practices

2009-08-13 Thread Steve Bertrand
Chas. Owens wrote: > On Thu, Aug 13, 2009 at 20:25, Steve Bertrand wrote: > snip >> - is "Perl Best Practises" what most of you use as general guidelines? >> IOW, if I continue reading it, will you be able to better understand my >> code (even though I stick with a few _small_ personal techniques)?

Re: Coding best practices

2009-08-13 Thread Chas. Owens
On Thu, Aug 13, 2009 at 20:25, Steve Bertrand wrote: snip > - is "Perl Best Practises" what most of you use as general guidelines? > IOW, if I continue reading it, will you be able to better understand my > code (even though I stick with a few _small_ personal techniques)? From > what I've read so

Re: Coding best practices

2009-08-13 Thread Steve Bertrand
Uri Guttman wrote: >> "SB" == Steve Bertrand writes: > > SB> - is "Perl Best Practises" what most of you use as general guidelines? > SB> IOW, if I continue reading it, will you be able to better understand my > SB> code (even though I stick with a few _small_ personal techniques)? From

Re: Coding best practices

2009-08-13 Thread Uri Guttman
> "SB" == Steve Bertrand writes: SB> - is "Perl Best Practises" what most of you use as general guidelines? SB> IOW, if I continue reading it, will you be able to better understand my SB> code (even though I stick with a few _small_ personal techniques)? From SB> what I've read so far

Coding best practices

2009-08-13 Thread Steve Bertrand
There are many senior (ie. *very* *very* respected/acknowledged in the community), Perl programmers on this list, who still take the time to answer questions on what may seem like an insignificant list. Many of these people have helped me, even directly. The more I read the books, the more I appr

Re: Seeing if any element of an array is in the current line

2009-08-13 Thread Shawn H. Corey
Mazza, Glen R. wrote: 1.) (Major question) I was wondering if I could get rid of the foreach and instead use some construct like: If (/@goodlist/) {...} Meaning "if the current line has *any* of the words in the array..." See `perldoc perlfaq6` and search for /How do I efficiently match

Seeing if any element of an array is in the current line

2009-08-13 Thread Mazza, Glen R.
Hello, I'm trying to write a simple Perl script to output certain lines from a logfile that contain any of a few phrases. I have two questions on the script I've done: use strict; use warnings; open my $infile, '<', $ARGV[0] or die "Can't open $ARGV[0]"; # Put in the badlist words tha

Improvements to http://perl-begin.org/

2009-08-13 Thread Shlomi Fish
I thought the Perl Beginners' Site - http://perl-begin.org/ was perfect after the last update, but boy I was wrong. A quick review and critique of the site by a certain prominent Perl developer revealed many issues with it, and afterwards I had found a lot of stuff that was lacking. So here's wh

generate TSIG key with perl

2009-08-13 Thread sys adm
Hi, do you know if there is a perl module which can generate TSIG key for Bind nameserver? thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/