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
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
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.
add a comment |
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
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.
add a comment |
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
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
perl
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.
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.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
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 phraseN N'th byte, character or field, counted from 1oddly seems to come from the manual page of thecutcommand ...
– 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
add a comment |
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~
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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 phraseN N'th byte, character or field, counted from 1oddly seems to come from the manual page of thecutcommand ...
– 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
add a comment |
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
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 phraseN N'th byte, character or field, counted from 1oddly seems to come from the manual page of thecutcommand ...
– 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
add a comment |
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
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
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 phraseN N'th byte, character or field, counted from 1oddly seems to come from the manual page of thecutcommand ...
– 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
add a comment |
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 phraseN N'th byte, character or field, counted from 1oddly seems to come from the manual page of thecutcommand ...
– 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
add a comment |
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~
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
add a comment |
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~
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
add a comment |
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~
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~
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.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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