I think that if you have the opening parenthesis right after "print", even
if there is whitespace in between, then the parser looks for a closing
parenthesis and assumes that everything in between is the entire argument
list for "print" -- so:
print ($ref)->{eggs};
just passes "$ref" as the only argument to "print". (That's also why
print ($ref)->{eggs}, "aaaaaaa\n"
doesn't print out the "aaaaaaa" part -- because $ref is the only argument
that "print" sees.)
That also explains why
print (($ref)->{eggs});
does work.
-Bennett
[EMAIL PROTECTED] http://www.peacefire.org
(425) 649 9024
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users