develooper Front page | perl.mvs | Postings from June 2017

// operator not working?

Thread Next
From:
David Griffiths1
Date:
June 28, 2017 13:47
Subject:
// operator not working?
Message ID:
OFB049C313.90385B26-ON8025814D.004B8223-8025814D.004BBA0D@notes.na.collabserv.com
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.

Cheers,

Dave Griffiths
z/OS Developer
IBM United Kingdom Limited, Hursley Park, Winchester, SO21 2JN, UK
 
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About