Hi,
I inherited some perl codes from my ex-coworker.
One line of codes is like this:
What is the bare word 'wantarray'? Shouldn't be something like '$wantarray'? And I can not find anywhere the bareword 'wantarray' gets assigned a value.
This code is very old and has been used for many years. No one has ever asked, nor can they explain it to me. Is it safe to say this is simply a typo?
Thank you for you help.
I inherited some perl codes from my ex-coworker.
One line of codes is like this:
Code:
return [COLOR=red]wantarray[/color] ? ($rc, $res) : $res;
What is the bare word 'wantarray'? Shouldn't be something like '$wantarray'? And I can not find anywhere the bareword 'wantarray' gets assigned a value.
This code is very old and has been used for many years. No one has ever asked, nor can they explain it to me. Is it safe to say this is simply a typo?
Thank you for you help.