Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 studying the Monastery: (13)
As of 2014-10-02 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (65 votes), past polls