in reply to Re^2: Basic Times Table excercise
in thread Basic Times Table excercise

Thanks "1nickt",for letting me know on this,it is important to know that and if it is not comaptible, I don't think I would want to install it. This would be a different topic,but using a Debian system,it is very important to only use programs that come from the Debian repos,and are compatible with the system. "perl" is. So in other words, the code would not work in perl ? I have not tried it yet. I like the part where the instructions are done like this:

say q:heredoc/END/; Type in the correct answer, Hit enter key to continue, if it is not correct the program will not move on to a new problem, think about your answer, and try again, when it is the correct answer, it will tell you, and give a new problem. END
I did just now try it from the command line,
perl say q:heredoc/END/; Type in the correct answer, Hit enter key to continue, if it is not correct the program will not move on to a new problem, think about your answer, and try again, when it is the correct answer, it will tell you, and give a new problem. END
But it does not seem to work with "perl"

I guess that is why, perhaps once I get a better understanding of the basic perl commands ,etc I will be able to do more with that.

Thank you as well, U65 for sharing that about perl6 , I don't see anything wrong with sharing it, but it would have been nice to mention it does not work with perl,but anyway thank you

Well any way than you every body on this, I guess for now that is about it

Replies are listed 'Best First'.
Re^4: Basic Times Table excercise
by Your Mother (Archbishop) on Feb 18, 2016 at 16:52 UTC

    Perl5/Perl6 are different but won't interfere on the same box any more than Ruby and Python would. Perl5 has HEREDOCs too; syntax is a bit different.

    print <<""; Some things on more than one line with a TRAILING NEWLINE # ^^^ blank line matches "" in print and ends statement print <<"orWITHyourOwnSTYLEendTag"; Some things on... orWITHyourOwnSTYLEendTag

    A lot of devs find the "" blank line ending HEREDOC a bit offensive/dangerous but I like it. :P More: Here documents, or how to create multi-line strings in Perl.

      Thanks, this is great, at least for some things and also thanks for the link for additional info "More" "Here documents, or how to create multi-line strings in Perl"