|
|
| more useful options | |
| PerlMonks |
Re^7: Entity statisticsby choroba (Cardinal) |
| on Nov 12, 2024 at 16:55 UTC ( [id://11162662]=note: print w/replies, xml ) | Need Help?? |
|
> I get the following error It's not an error, it's a warning. You can easily tell it from the W in the diagnostics output: "(W uninitialized)". The most probable reason is some of the regexes didn't match anything, so their corresponding element in the array is undefined. You can print 0 instead of an undefined value using the defined-or operator //: or you can prepopulate the array with zeros:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||