>>>>> "tx" == tianjun xu <tianj...@yahoo.com> writes:

  tx> my %hash=();

no need to initialize that to ().

  tx> while(<>){
  tx>   chomp(my $line=$_);

why read the line into $_ and then copy it?

        while( my $line = <> ) {

also please don't quote entire long emails. quote the needed part and
put your code and comments below it.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to