in reply to false warning: print (...) interpreted as function
No warning are issued in first and second examples.perl -Mstrict -wE "my $x = print ('string'); say ''; say $x" string 1 perl -Mstrict -wE "print('string')" string perl -Mstrict -wE "print ('string')" print (...) interpreted as function at -e line 1. string
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: false warning: print (...) interpreted as function
by choroba (Cardinal) on Nov 06, 2015 at 12:55 UTC | |
by Athanasius (Archbishop) on Nov 06, 2015 at 13:17 UTC |