0+ is a numeric operation; add 0 to $new. And $new contains an array reference, which stringifies as something like ARRAY(0x1427fc8), and numerifies as something like 28299208. So 0+ forces a numeric representation of the array reference held in $new.
Far more than you ever wanted to know (but you did ask, so...) about stringification and numerification is detailed in perldata. Perl's "duck typing" means that if you treat something like a string, Perl will do what it can to make a string of it. If you treat something as a number, Perl will do what it can to make a number of it.
Dave
In reply to Re: Perl Syntax
by davido
in thread Perl Syntax
by kbfiles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |