Home  |  Linux  | Mysql  | PHP  | XML
From:Uri Guttman Date:Fri Sep  3 05:47:45 2010
Subject:Re: Traversing Hash printing two times
>>>>> "JD" == Jatin Davey <jashokda@cisco.com> writes:

JD> for (keys %months) {
JD> print "Months in $_ : @{$months{$_}} \n";
JD> }

JD> and it worked fine.

but it isn't as good as my code. don't use $_ unless you have to (as in
map/grep). it is much better to use named variables.


JD> On 9/3/2010 10:47 AM, Uri Guttman wrote:
>>>>>>> "JD" == Jatin Davey<jashokda@cisco.com> writes:
JD> #!/usr/bin/perl
JD> use warnings;
JD> use strict;

and please learn to edit quoted emails and to bottom post. you can google for
what that means. i don't need to see (nor does anyone else) my entire
email again.

thanx,

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Syntax for if
Re: Traversing Hash printing two times
Re: Traversing Hash printing two times
Re: AW: Using common object, without passing it around
HTML::Template, CGI::APP with the JSON + Jquery please help.



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants