in reply to «Do» does not read an array containing element w/ «'» sign.

First, why do you use the term "massive" instead of array?

I can't reproduce the problem you are claiming:

$ cat data.pl 'asdasd', "'asdasd", '\'asdasd', "\\'asdasd", '\\\'asdasd', $ perl -MData::Dumper -e 'print Dumper [do "data.pl"]' $VAR1 = [ 'asdasd', '\'asdasd', '\'asdasd', '\\\'asdasd', '\\\'asdasd' ];

Which is pretty much expected given Perl's behavior in regards to quoting rules, see e.g. Quote Like Operators and Quote and Quote like Operators.

Perhaps you could describe what you are trying to achieve more exactly, with some real sample input and expected output - see How do I post a question effectively? and Basic debugging checklist

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

    1. I'm not english speaker of course, so, i supposed it being a noun. Now i will use array instead. Thank you for pointing out.

    2. I do not know why it works for you. Can you equal do result to array, and print out the element, holding _'_ sign? (I'm not familiar w/ Data::Dumper) Should i pass my array through Dumper before using?

      nicolay, you must read! If you see a module used here that you don't know, look it up!!!! I don't know how much of the docs are in your native language, but I think your English is quite good enough to read most docs as the language is (supposed to be) clear and technical.

      Data::Dumper is a very useful tool for development. Many problems can be solved by looking closely at the contents of your data structures and discovering what your data actually is. Data::Dumper does this.

      You won't use Data::Dumper in production usually, so you don't need to "pass your array through it."

      The way forward always starts with a minimal test.

        You are absolutely correct! -- Reading is my weakness/laziness, and w/ PERL documentation -- even boring -- i do not like the way they write it -- always read books on the web written other way -- for years notwithstanding always had the doc package installed w/ my «Linux» distro.

        And thank you for the time spent on me! -- I really appreciate it! -- You are the one that could write books/articles on PERL!

        I've looked at the module of course -- otherwise farther talk would be useless. But from quick look didn't find anything interesting to me. English wasn't a problem -- the way how info. is given is the problem. I would point you to a situation, when a doc. writer (like PERL, again), says something like, Well, you how Peter does... (here goes something that related to the Peter's saying) -- but i do not know «Peter», nor the way he «says» -- so, farther reading for me is w/ some kind of lack -- something that is always missed while reading the documentation. -- The same w/ most modules of PERL description: they are poorly organized, poorly explained, not enough (for me) examples are given, etc. -- All this «blesses» such people as i am (sure, i'm not the only one thinking the way) just to quit w/ the modules, and rather that to use already, probably, well designed and well tested code, go and write their own one -- that works, and every bit of it is easily understood, and documentation in parallel is written (to forget not in the future the ideas of a «genius» :o) ). -- Just a brief explain «why».

        Because you have explained about the module and my own notices on how people use it -- I too wanted to use it, but not quickly (because of documentation again).

        For now, i have solved my problem having organized my data in the file as follows:

        q~\'asdasd~, q~fghfg, hfgh~

        And it works perfectly. May, w/ a time i will change it all to a DB (for size of array will be great -- but again, i will have to put in array -- so...).

        And thank you for your time!