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

Re^2: Martin Brown book page 33

by mnooning (Beadle)
on May 17, 2006 at 02:37 UTC ( #549935=note: print w/replies, xml ) Need Help??

in reply to Re: Martin Brown book page 33
in thread Martin Brown book page 33

Yes, FirstSecond2311. Me, too.
So THAT is where the extra 1s come from!

To rephrase what blazar, jhourcle and friedo (and the book) pointed out,
the terms in the main print statements have a higher precedence then
the plain numbers, and hence get evaluated first. The
said "terms" are subroutine calls that themselves do
a print, and that is why we see First and then Second being printed.
Thanks for the extra credit question, too, as well as
the answer.

To comment on adrianh suggesting other books instead,
the fact is I've read a ton of perl books. The
debugging book just happens to be one I haven't
read. In spite of all the Perl books I've read, the
I could not seem to figure out the answer.
Thanks again

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://549935]
[marto]: ambrus: no :)
[robby_dobby]: ambrus: Dunno. marto is from Glasgow. I'm in London and I say London is quite colourful, but boring :-)
[CPUlidster]: Is the glass pyramid still in glasgow
[robby_dobby]: CPUlidster: Eh, what? That's Louvre, right?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-12-15 10:51 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (431 votes). Check out past polls.