in reply to «Do» does not read an array containing element w/ «'» sign.
I am unable to reproduce your issue.
Constructing a test data file from your snippet above:
'qweqwe', 'rtyr tyr', '\'asdasd', 'fghfghfgh'
And constructing a Perl script from your snippet:
use strict; use warnings; use Data::Dumper; open my $file, '<', 'test1.dat'; my @data=do $file; close $file; print Dumper \@data; exit; __END__
Produces:
D:\PerlMonks>read1.pl $VAR1 = [ undef ]; D:\PerlMonks>
This looks nothing like the problem you described.
I must be guessing wrong about what your script is doing. Please see How do I post a question effectively?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: do does not read massive containing element w/ ' sign.
by Anonymous Monk on Aug 21, 2015 at 15:43 UTC | |
by nikolay (Beadle) on Aug 22, 2015 at 09:52 UTC | |
|
Re^2: do does not read massive containing element w/ ' sign.
by nikolay (Beadle) on Aug 22, 2015 at 09:44 UTC | |
by poj (Abbot) on Aug 23, 2015 at 12:24 UTC | |
by nikolay (Beadle) on Aug 24, 2015 at 12:11 UTC |