Re: comparing values in two hashes

2012-03-17 Thread John W. Krahn
Chris Stinemetz wrote: Hello list, Hello, I have two hashes that I would like to compare the values where the keys are the same. If there are any discrepancies I would like to print them. I have been struggling in find a solution. Below is what I have thus far: #!/usr/bin/perl use warnings;

Re: comparing values in two hashes

2012-03-17 Thread Shlomi Fish
On Sat, 17 Mar 2012 08:17:56 -0500 Chris Stinemetz wrote: > Hello list, > > I have two hashes that I would like to compare the values where the > keys are the same. If there are any discrepancies I would like to > print them. I have been struggling in find a solution. Below is what I > have thus

comparing values in two hashes

2012-03-17 Thread Chris Stinemetz
Hello list, I have two hashes that I would like to compare the values where the keys are the same. If there are any discrepancies I would like to print them. I have been struggling in find a solution. Below is what I have thus far: #!/usr/bin/perl use warnings; use strict; use Data::Dumper; my $

Re: script produced no output

2012-03-17 Thread Shawn H Corey
On 12-03-17 04:20 AM, Shlomi Fish wrote: You should use better quoting here. Doing \" excessively is an anti-pattern. Maybe use a here-document. It would be better if the OP used a module to generate the HTML. CGI.pm is included with all Perl installations but is the most rudimentary. More ad

Re: script produced no output

2012-03-17 Thread Shlomi Fish
Hi Eko, On Sat, 17 Mar 2012 11:19:27 +0700 Eko Budiharto wrote: > dear list, > I have a perl script that I would like to run from any browsers. I tried > it on firefox and internet explorer, but both gave me, the same error > message, "Content-type: text/html > > 'C:\HRMS\cgi-bin\cetakKuponMa

Re: Transitioning from BASH to Perl

2012-03-17 Thread Shlomi Fish
Hi Deepak, On Sat, 17 Mar 2012 02:43:02 +0530 Deepak Malhotra wrote: > Hi Folks, > > > You might have got similar questions in past too but could I request to > demystify it again on how to swiftly and quickly make transition to Perl > from Bash. Although I am no expert of Bash and awk but I c