in reply to Re^2: putting commas separated values into a new file line by line
in thread putting commas separated values into a new file line by line

What Perl version are you using?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^3: putting commas separated values into a new file line by line
  • Download Code

Replies are listed 'Best First'.
Re^4: putting commas separated values into a new file line by line
by Anonymous Monk on Aug 11, 2020 at 17:06 UTC
    perl v5.10.1
      You are 11 years behind. The /r needs 5.14, without it, you need to do
      my $runTest = 'sydney,delhi,NY,Russia'; (my $lines = $runTest) =~ tr/,/\n/; print {$out} $lines;
      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]