Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Counting In a Log File from Multiple Variables

by japhy (Canon)
on Sep 02, 2004 at 16:09 UTC ( #387966=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: Counting In a Log File from Multiple Variables
Download Code
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://387966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2015-07-02 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls