http://www.perlmonks.org?node_id=387966


in reply to Re: Counting In a Log File from Multiple Variables
in thread Counting In a Log File from Multiple Variables

I think you'll be a whole lot happier when you start writing
print "User: $User\n"; print " [$Error] happened $Data->{$User}{$Error} time(s)\n";
_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^3: Counting In a Log File from Multiple Variables
by Rhose (Priest) on Sep 02, 2004 at 16:33 UTC
    I think about that all the time. *Smiles* When I started writing perl code, I made some mistakes with "" and '', so I started putting literals in '', special characters (like \t and \n) in "", and I pulled out all variables.

    It's just one of those habits which has stuck around in my code since.