I ran across something interesting today. I'm getting different
results for an array depending on how it's used, as follows:
say @fieldnames;
prints
UIDGroupNamelastmodcategoryhtmlhidettsortorder
-----
say "fieldnames = " . @fieldnames;
prints
fieldnames = 7
-----
say "fieldnames = @fieldnames";
prints
fieldnames = UID GroupName lastmod categoryhtml hide tt sortorder
-----
Why does @fieldnames give a different result depending on how it's used
within a say statement?
Thanks,
Marc
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/