in reply to Re: What's this line means in HTTP::headers?
in thread What's this line means in HTTP::headers?
Thank you Ken. For wantarray, it's exactly answer what I want. I also tried a test.pl verify it. I understand PUSH and SET after reading your comments. My another question is about the reason of using the ++. If the 0(false) is added to 1, what's the incrementing for? It's not like an iterator's or a pointer's moving we normally see. The increasing didn't change anything seemingly.
For "++" sign in Perl, I only use it in some simple cases and seldom embedded it into a complicated expression. In some language, "++"'s action is dependent on the compiler's implementation and I should know the language very well or may easily make error. When I saw "$seen{lc($field)}++", I'm thinking which operator wll take the highest priority to interpreter, "($seen{lc($field)})++" or "$seen({lc($field)}++)". I decided to find some artical about Perl Ops priority to read first.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What's this line means in HTTP::headers?
by kcott (Archbishop) on Sep 05, 2013 at 13:26 UTC | |
by anaconda_wly (Scribe) on Sep 06, 2013 at 03:33 UTC | |
|
Re^3: What's this line means in HTTP::headers?
by Anonymous Monk on Sep 05, 2013 at 06:57 UTC |