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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to