in reply to «Do» does not read an array containing element w/ «'» sign.
So, question is, How i should store my data regarding sign _'_ ?
Your data is already in fields and in rows, so why not make it a CSV file?
$ cat 1139428.dat qweqwe,rtyr tyr,'asdasd,fghfghfgh foo,bar,baz,qux $
$ cat 1139428.pl #! perl use strict; use warnings; use Text::CSV_XS 'csv'; my $data = csv( in => '1139428.dat' ); foreach my $row ( @{ $data } ) { foreach my $field ( @{ $row } ) { print "$field\n"; } } __END__ $
$ perl 1139428.pl qweqwe rtyr tyr 'asdasd fghfghfgh foo bar baz qux $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: do does not read massive containing element w/ ' sign.
by nikolay (Beadle) on Aug 22, 2015 at 10:57 UTC | |
by 1nickt (Canon) on Aug 22, 2015 at 13:46 UTC | |
by nikolay (Beadle) on Aug 22, 2015 at 20:36 UTC | |
by karlgoethebier (Abbot) on Aug 23, 2015 at 10:01 UTC | |
by nikolay (Beadle) on Aug 24, 2015 at 12:29 UTC |