Re: Array elements in Hash

2012-10-05 Thread jet speed
Hi Shekar, Appreciate your help, you saved me a lot of time ! I applied your loop and it works fine. Apologies i couldn't post my final program due to our internal system restriction.hence i have used test data here. @match = ("6c7b00", "6d7b00", "6d9d8f", "6c6863", "6e6632"); %abc = ('6c' =>'

Re: Array elements in Hash

2012-10-05 Thread Shekar
Yes. Loop through the array, for each element get the first 2 characters using substr, then pass it to hash as key to get the corresponding value. -- Shekar On Fri, Oct 5, 2012 at 4:51 PM, jet speed wrote: > Hi Shekar, > > Appreciate your help, you saved me a lot of time ! > > I applied you

RE: Learning CPAN

2012-10-05 Thread Bob McConnell
> From: Jim Gibson > > On Oct 4, 2012, at 8:14 PM, Hal Wigoda wrote: > > > Who uses newsgroups anymore? > > I do. There are lots of people still using Usenet. > > > What reader application is the best for reading news groups? > > It depends upon your platform. I use Thoth on a Mac. There are l

Re: Array elements in Hash

2012-10-05 Thread jet speed
Great. Thanks Shekar ! On Fri, Oct 5, 2012 at 12:37 PM, Shekar wrote: > Yes. Loop through the array, for each element get the first 2 characters > using substr, then pass it to hash as key to get the corresponding value. > > -- > Shekar > > > > > On Fri, Oct 5, 2012 at 4:51 PM, jet speed wrot

Re: Variables disappearing in code

2012-10-05 Thread Shlomi Fish
Hi Mark, On Fri, 05 Oct 2012 11:25:01 -0400 Mark Haney wrote: > On 10/04/2012 03:23 PM, Shlomi Fish wrote: > > On Thu, 4 Oct 2012 18:11:50 + > > Mark Haney wrote: > > > > This may be a culprit - it seems to be a reference to a scalar that > > is itself an array reference. Usually just doing

str2num and big quote

2012-10-05 Thread li panda
Here is two beginners questiones ~ to trouble you 1.print "This is the ${times}th time.\n"; what is the function of "{}" 2.print "0x30" + 0, "\n"; why output is 0 not 0x30 Thanks in advance

Re: str2num and big quote

2012-10-05 Thread Jim Gibson
On Oct 1, 2012, at 2:44 AM, li panda wrote: > Here is two beginners questiones ~ to trouble you > > 1.print "This is the ${times}th time.\n"; > what is the function of "{}" The "{}" in ${times} specify that the value of the scalar variable $times should be interpolated into the string and fol

Re: str2num and big quote

2012-10-05 Thread Andy Bach
On Mon, Oct 1, 2012 at 4:44 AM, li panda wrote: > 2.print "0x30" + 0, "\n"; > why output is 0 not 0x30 afbach$ perl -e 'print 0x30 + 0, "\n";' 48 afbach$ perl -e 'printf("%x\n", 0x30 + 0);' 30 afbach$ perl -e 'printf("%x\n", 30 + 0);' 1E -- a Andy Bach, afb...@gmail.com 608 658-