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

// operator not working?

Thread Next
David Griffiths1
June 28, 2017 13:47
// operator not working?
Message ID:
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.


Dave Griffiths
z/OS Developer
IBM United Kingdom Limited, Hursley Park, Winchester, SO21 2JN, UK
Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About