|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Strange behavior of array in scalar contextby xavier8854 (Novice) |
| on Jan 26, 2026 at 10:13 UTC ( [id://11167232]=perlquestion: print w/replies, xml ) | Need Help?? |
|
xavier8854 has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Why does scalar(@array) return 1 for an empty array ? Code : result is : I use this syntax regulary, never happened. Thanks for your wisdom, FTR, this is perl 5.38.2 on Ubuntu 22.0.4 Xavier
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||