Unterminated quoted string (Perl)Perl 5.12 on Ubuntu 10.10Can't run perl-browserPermission denied running perlCommand-line perl regex replacement: replacement string contains utf8Running Multiple perl script simultaneouslyPerl: warning: Setting locale failed.desktop invoking perl and terminal blinks on and off without running; yet runs fine using EXEC line in terminalerror for not using bash?Converting a string of Perl code to BASH codePerl Make GLOB ignore case

Why do we call complex numbers “numbers” but we don’t consider 2-vectors numbers?

What is the purpose of a disclaimer like "this is not legal advice"?

Finding integer solution to a quadratic equation in two unknowns

Why is there an extra space when I type "ls" on the Desktop?

How does learning spells work when leveling a multiclass character?

Can I challenge the interviewer to give me a proper technical feedback?

EXM headers adding bounce@spe.sitecoremail.com as the sender

Is this a crown race?

Having the player face themselves after the mid-game

Why aren't there more Gauls like Obelix?

What does it take to become a wilderness skills guide as a business?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Create chunks from an array

Should I file my taxes? No income, unemployed, but paid 2k in student loan interest

A vote on the Brexit backstop

Giving a talk in my old university, how prominently should I tell students my salary?

Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?

Can Witch Sight see through Mirror Image?

ESPP--any reason not to go all in?

What does *dead* mean in *What do you mean, dead?*?

Was this cameo in Captain Marvel computer generated?

How to recover against Snake as a heavyweight character?

Too soon for a plot twist?

I am the light that shines in the dark



Unterminated quoted string (Perl)


Perl 5.12 on Ubuntu 10.10Can't run perl-browserPermission denied running perlCommand-line perl regex replacement: replacement string contains utf8Running Multiple perl script simultaneouslyPerl: warning: Setting locale failed.desktop invoking perl and terminal blinks on and off without running; yet runs fine using EXEC line in terminalerror for not using bash?Converting a string of Perl code to BASH codePerl Make GLOB ignore case













1















I am using a new version of perl to run some old script. This is my perl version:



This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail)


I am Very confusing about this line in the script, which just keeping error, though the program is runable. Maybe it's b/c the script was written for quite a while and perl has made some syntax change? Below is the line:



use warnings;
use strict;
if($#ARGV != 0||$ARGV[0] eq "--help") print STDERR "Split bed file into one file per chromosome (keeping and adjusting the header)nnUsage: split_bed <BED file>";


The error message is:



 1: Syntax error: Unterminated quoted string --hel_ N N'th byte, character or field, counted from 1p


Can anyone help me to debug it?










share|improve this question







New contributor




Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    1















    I am using a new version of perl to run some old script. This is my perl version:



    This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail)


    I am Very confusing about this line in the script, which just keeping error, though the program is runable. Maybe it's b/c the script was written for quite a while and perl has made some syntax change? Below is the line:



    use warnings;
    use strict;
    if($#ARGV != 0||$ARGV[0] eq "--help") print STDERR "Split bed file into one file per chromosome (keeping and adjusting the header)nnUsage: split_bed <BED file>";


    The error message is:



     1: Syntax error: Unterminated quoted string --hel_ N N'th byte, character or field, counted from 1p


    Can anyone help me to debug it?










    share|improve this question







    New contributor




    Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      I am using a new version of perl to run some old script. This is my perl version:



      This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail)


      I am Very confusing about this line in the script, which just keeping error, though the program is runable. Maybe it's b/c the script was written for quite a while and perl has made some syntax change? Below is the line:



      use warnings;
      use strict;
      if($#ARGV != 0||$ARGV[0] eq "--help") print STDERR "Split bed file into one file per chromosome (keeping and adjusting the header)nnUsage: split_bed <BED file>";


      The error message is:



       1: Syntax error: Unterminated quoted string --hel_ N N'th byte, character or field, counted from 1p


      Can anyone help me to debug it?










      share|improve this question







      New contributor




      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am using a new version of perl to run some old script. This is my perl version:



      This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail)


      I am Very confusing about this line in the script, which just keeping error, though the program is runable. Maybe it's b/c the script was written for quite a while and perl has made some syntax change? Below is the line:



      use warnings;
      use strict;
      if($#ARGV != 0||$ARGV[0] eq "--help") print STDERR "Split bed file into one file per chromosome (keeping and adjusting the header)nnUsage: split_bed <BED file>";


      The error message is:



       1: Syntax error: Unterminated quoted string --hel_ N N'th byte, character or field, counted from 1p


      Can anyone help me to debug it?







      perl






      share|improve this question







      New contributor




      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 8 hours ago









      Tian YijunTian Yijun

      61




      61




      New contributor




      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes


















          0














          This is not a Perl error. Perl would have said:



          Can't find string terminator '"' anywhere before EOF


          It seems the shell can produce similar error, though:



          echo 'x="a' | sh
          sh: 2: Syntax error: Unterminated quoted string


          How do you run the script? Does it contain a shebang line? Try running it with explicit perl:



           perl script.pl





          share|improve this answer























          • Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

            – Tian Yijun
            8 hours ago











          • The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

            – steeldriver
            8 hours ago











          • Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

            – Tian Yijun
            8 hours ago












          • I had tried perl script.pl... It's still error..

            – Tian Yijun
            8 hours ago


















          0














          I just searched history for my question. Since 5.10.0, perl has "New defined-or operator (//)".



          https://en.wikipedia.org/wiki/Perl_5_version_history



          Thank you~






          share|improve this answer








          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.















          • 1





            How is this related to your question? The code sample nor the error message contains the operator.

            – choroba
            8 hours ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Tian Yijun is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124072%2funterminated-quoted-string-perl%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          This is not a Perl error. Perl would have said:



          Can't find string terminator '"' anywhere before EOF


          It seems the shell can produce similar error, though:



          echo 'x="a' | sh
          sh: 2: Syntax error: Unterminated quoted string


          How do you run the script? Does it contain a shebang line? Try running it with explicit perl:



           perl script.pl





          share|improve this answer























          • Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

            – Tian Yijun
            8 hours ago











          • The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

            – steeldriver
            8 hours ago











          • Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

            – Tian Yijun
            8 hours ago












          • I had tried perl script.pl... It's still error..

            – Tian Yijun
            8 hours ago















          0














          This is not a Perl error. Perl would have said:



          Can't find string terminator '"' anywhere before EOF


          It seems the shell can produce similar error, though:



          echo 'x="a' | sh
          sh: 2: Syntax error: Unterminated quoted string


          How do you run the script? Does it contain a shebang line? Try running it with explicit perl:



           perl script.pl





          share|improve this answer























          • Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

            – Tian Yijun
            8 hours ago











          • The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

            – steeldriver
            8 hours ago











          • Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

            – Tian Yijun
            8 hours ago












          • I had tried perl script.pl... It's still error..

            – Tian Yijun
            8 hours ago













          0












          0








          0







          This is not a Perl error. Perl would have said:



          Can't find string terminator '"' anywhere before EOF


          It seems the shell can produce similar error, though:



          echo 'x="a' | sh
          sh: 2: Syntax error: Unterminated quoted string


          How do you run the script? Does it contain a shebang line? Try running it with explicit perl:



           perl script.pl





          share|improve this answer













          This is not a Perl error. Perl would have said:



          Can't find string terminator '"' anywhere before EOF


          It seems the shell can produce similar error, though:



          echo 'x="a' | sh
          sh: 2: Syntax error: Unterminated quoted string


          How do you run the script? Does it contain a shebang line? Try running it with explicit perl:



           perl script.pl






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 8 hours ago









          chorobachoroba

          6,67211731




          6,67211731












          • Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

            – Tian Yijun
            8 hours ago











          • The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

            – steeldriver
            8 hours ago











          • Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

            – Tian Yijun
            8 hours ago












          • I had tried perl script.pl... It's still error..

            – Tian Yijun
            8 hours ago

















          • Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

            – Tian Yijun
            8 hours ago











          • The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

            – steeldriver
            8 hours ago











          • Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

            – Tian Yijun
            8 hours ago












          • I had tried perl script.pl... It's still error..

            – Tian Yijun
            8 hours ago
















          Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

          – Tian Yijun
          8 hours ago





          Hi Choroba Thank you. I just find some release instructions from wiki. That actually fixed my problem. There is a "$#ARGV != 0||$ARGV[0] eq "--help"" in the 3rd line.

          – Tian Yijun
          8 hours ago













          The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

          – steeldriver
          8 hours ago





          The phrase N N'th byte, character or field, counted from 1 oddly seems to come from the manual page of the cut command ...

          – steeldriver
          8 hours ago













          Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

          – Tian Yijun
          8 hours ago






          Wait...simply run the script without argument is fine. But when I add "--help", the error came again and no stderr messages at all..

          – Tian Yijun
          8 hours ago














          I had tried perl script.pl... It's still error..

          – Tian Yijun
          8 hours ago





          I had tried perl script.pl... It's still error..

          – Tian Yijun
          8 hours ago













          0














          I just searched history for my question. Since 5.10.0, perl has "New defined-or operator (//)".



          https://en.wikipedia.org/wiki/Perl_5_version_history



          Thank you~






          share|improve this answer








          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.















          • 1





            How is this related to your question? The code sample nor the error message contains the operator.

            – choroba
            8 hours ago















          0














          I just searched history for my question. Since 5.10.0, perl has "New defined-or operator (//)".



          https://en.wikipedia.org/wiki/Perl_5_version_history



          Thank you~






          share|improve this answer








          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.















          • 1





            How is this related to your question? The code sample nor the error message contains the operator.

            – choroba
            8 hours ago













          0












          0








          0







          I just searched history for my question. Since 5.10.0, perl has "New defined-or operator (//)".



          https://en.wikipedia.org/wiki/Perl_5_version_history



          Thank you~






          share|improve this answer








          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          I just searched history for my question. Since 5.10.0, perl has "New defined-or operator (//)".



          https://en.wikipedia.org/wiki/Perl_5_version_history



          Thank you~







          share|improve this answer








          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 8 hours ago









          Tian YijunTian Yijun

          61




          61




          New contributor




          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Tian Yijun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.







          • 1





            How is this related to your question? The code sample nor the error message contains the operator.

            – choroba
            8 hours ago












          • 1





            How is this related to your question? The code sample nor the error message contains the operator.

            – choroba
            8 hours ago







          1




          1





          How is this related to your question? The code sample nor the error message contains the operator.

          – choroba
          8 hours ago





          How is this related to your question? The code sample nor the error message contains the operator.

          – choroba
          8 hours ago










          Tian Yijun is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Tian Yijun is a new contributor. Be nice, and check out our Code of Conduct.












          Tian Yijun is a new contributor. Be nice, and check out our Code of Conduct.











          Tian Yijun is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124072%2funterminated-quoted-string-perl%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

          fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap

          Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch