in reply to Forcing a returned array (wantarray?)

I want to standardize info to act as an array, even its its a scalar (ie, create a 1 item list)

Does your code not do that? I can't think of any place in Perl where assigning a scalar to an array doesn't create a one-element array.

Please post a short test case demonstrating that it doesn't work in this case.

  • Comment on Re: Forcing a returned array (wantarray?)