We don't bite newbies here... much | |
PerlMonks |
Re: Unscalar'ize a fake arrayby kcott (Archbishop) |
on Sep 18, 2017 at 05:26 UTC ( [id://1199582]=note: print w/replies, xml ) | Need Help?? |
G'day Gtforce, The statement "I receive an array" is vague. What precisely does that mean? Is it passed as an argument to a subroutine? Is it returned from a subroutine? Is it populated in the middle of some code (e.g. '@result = ...', 'push @result, ...', etc.)? I'd suggest you take a step back and look at how @result is generated. There could be a bug upstream which, when fixed, resolves this, and any other, downstream problems. I can really only speculate; however, purely as an example of one possible scenario, a change to $/, which hadn't been suitably localised, could cause this sort of situation. Test data:
Non-localised change (with respect to array population):
Localised change (with respect to array population):
If you provide us with more information, we can probably offer better advice. — Ken
In Section
Seekers of Perl Wisdom
|
|