Re: Perl coding standards

2012-01-31 Thread timothy adigun
Hi Satya, Plus you can also look at Effective Perl Programming [Second Edition] by Joseph N. Hall, Joshua A. McAdams and brian d foy. On Tue, Jan 31, 2012 at 7:24 PM, Shlomi Fish wrote: > Hi Satya, > > On Tue, 31 Jan 2012 10:38:08 -0500 > "Nemana, Satya" wrote: > > > Hi Gurus > > > > > > > > Is

Re: Parsing Question

2012-01-31 Thread Brandon Phelps
Thanks a ton David, This will definitely help! Not able to try it now but I'll give it a shot first thing tomorrow. -Brandon On 1/31/2012 8:15 PM, Kronheim, David (Contr) wrote: Brandon, I took most of your comments and sample data and put it in the following program. Taking the data out

Parsing Question

2012-01-31 Thread Brandon Phelps
Hello all, I am attempting to parse a Nagios status.dat file and am curious about what the most efficient way to do this would be. I'm sure I could come up with something but it would be very convoluted and I'm sure there is a better way. Below is a sample of the file. The sections I am in

Re: Merging Files

2012-01-31 Thread Paul Johnson
On Tue, Jan 31, 2012 at 01:34:44PM -0600, Matt wrote: > Perhaps asking wrong place but I have two directories both full of > hundreds of text files. > > dir1/file1 > dir1/file2 > dir2/file1 > dir2/file2 > > I want to append all files together with same name into a new directory. > > dir1/file1 c

Merging Files

2012-01-31 Thread Matt
Perhaps asking wrong place but I have two directories both full of hundreds of text files. dir1/file1 dir1/file2 dir2/file1 dir2/file2 I want to append all files together with same name into a new directory. dir1/file1 contains: hi by later dir2/file1 contains: woops dropped new_dir/file1 woul

Re: Perl coding standards

2012-01-31 Thread Shlomi Fish
Hi Satya, On Tue, 31 Jan 2012 10:38:08 -0500 "Nemana, Satya" wrote: > Hi Gurus > > > > Is there a website /document which you recommend for learning perl > coding standards? > > I understand googling will give a good number of results, but want some > useful ones which are practically follo

Re: Copying a Hash

2012-01-31 Thread Shawn H Corey
On 12-01-31 01:11 PM, Matt wrote: When I copy a hash like so: my %hash2 = %hash1; Modifying hash2 seems to modify hash1. How do I make it so there both independent after being copied? This creates a shallow copy. It does not copy the contents of any references in the hash. To do that, use

Copying a Hash

2012-01-31 Thread Matt
When I copy a hash like so: my %hash2 = %hash1; Modifying hash2 seems to modify hash1. How do I make it so there both independent after being copied? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl coding standards

2012-01-31 Thread Rob Dixon
On 31/01/2012 15:38, Nemana, Satya wrote: Is there a website /document which you recommend for learning perl coding standards? I understand googling will give a good number of results, but want some useful ones which are practically followed and useful. Perl itself comes with style documentat

Re: Perl coding standards

2012-01-31 Thread jbiskofski
Perl Best Practices is the famous book on this topic. Also Perl::Critic is a module that critiques your code based on the rules in that book. peace it in, peace it out & peace it inside out :] - Jose On Tue, Jan 31, 2012 at 9:38 AM, Nemana, Satya wrote: > Hi Gurus > > > > Is there a website /d

Perl coding standards

2012-01-31 Thread Nemana, Satya
Hi Gurus Is there a website /document which you recommend for learning perl coding standards? I understand googling will give a good number of results, but want some useful ones which are practically followed and useful. Regards, Satya