Quantcast
Channel: When I run a file which is begin with "#!/usr/bin/perl -w", I get a error: "syntax error at line 153, near "=~ ?"" - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Shawn for When I run a file which is begin with "#!/usr/bin/perl -w", I get a error: "syntax error at line 153, near "=~ ?""

$
0
0
$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 it would produce a deprecation warning. As of v5.22.0, omitting it produces a syntax error. If you encounter this construct in older code, you can just add m.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>