--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote:
> On Jun 26, Silvio Luis Leite Santana said:
> >Why does code 1 work, but code 2 doesn't?
> >(the diference is the ; after print)
> >$bissexto and { print "OK\n" };
> >$bissexto and { print "OK\n"; };
> 
> In the first code, Perl thinks you're constructing a hash reference. 
> In the second code, Perl sees a block where it expects an expression.

Ok, I found the difference -- the semicolon.
I just didn't see it before.
Doh.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to