Re: // operator not working?
[email protected] (Dave Mitchell) Thu, 29 Jun 2017 11:06:52 +0100
| Newsgroups | perl.mvs |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 28, 2017 at 02:47:08PM +0100, David Griffiths1 wrote:
> Hi, a colleague says that the // operator does not appear to be working:
>
> $days = $ARGV[0] // 3;
>
> returns `HPE20846 (Might be a runaway multi-line // string starting on
> line 12)`
>
> This is with version 5.24.
Please show a full script which demonstrates this issue. There might for
example be a syntax error earlier which is confusing the parser.
--
"There's something wrong with our bloody ships today, Chatfield."
-- Admiral Beatty at the Battle of Jutland, 31st May 1916.