in reply to Re: Seperating values with spaces in array
in thread Seperating values with spaces in array

the JSON is for later dont worry about that. The txt file has a list of numbers "001, 002, 003.... Those leading zeros are fine as a string but are removed when turned into numeric data in the array.
  • Comment on Re^2: Seperating values with spaces in array

Replies are listed 'Best First'.
Re^3: Seperating values with spaces in array
by Corion (Patriarch) on Jan 17, 2016 at 11:53 UTC

    Perl does not magically turn strings into numeric data when putting them into an array. Maybe your problem happens when you output the data?

    Please show us some problematic input data and the output you get when you run your program as you have posted it.