Quantcast
Browsing latest articles
Browse All 4 View Live

Answer by Dave Cross for When I run a file which is begin with...

You already have two answers that explain the problem.? ... ? is no longer valid syntax for a match operator. You need m? ... ? instead.Until Perl 5.22, your syntax generated a warning. Now it's a...

View Article


Answer by Shawn for When I run a file which is begin with "#!/usr/bin/perl...

$output_volume =~ ?^([\S]+).mnc?This used to be valid perl and thus might appear in old code and instructional material.From perlop:In the past, the leading m in m?PATTERN? was optional, but omitting...

View Article


Answer by zdim for When I run a file which is begin with "#!/usr/bin/perl...

That is Perl code so the first error message is meaningful.With delimiters other than // in the match operator you must have the explicit m for it, so $output_volume =~ m?^([\S]+).mnc?It is only with...

View Article

When I run a file which is begin with "#!/usr/bin/perl -w", I get a error:...

When I run a file which is begin with #!/usr/bin/perl -w, I get a error:syntax error at line 153, near "=~ ?"I try to add "#!/bin/bash", this error is not append, but I get another error:"line 34:...

View Article
Browsing latest articles
Browse All 4 View Live