Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by japhy (Canon)
on Sep 02, 2004 at 16:09 UTC ( [id://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

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found