in reply to Re: odd or even day?
in thread odd or even day?

The only difference is the parentheses. I'm not sure why they are required. Perhaps somebody else can explain that...

I think its because perl follows standard mathematical operator precedence rules: B.E.D.M.A.S (Brackets, exponents, division, multiplication, addition, subtraction.)

update: Grandfather's explanation is better.

---
$world=~s/war/peace/g

Replies are listed 'Best First'.
Re^3: odd or even day?
by jondkent (Initiate) on Jan 07, 2006 at 18:46 UTC
    Thanks for the replies. I'd completely forgotten about precedence rules, seems to have sorted it out.
    Thanks alot
    Jon