View Single Post
  #1 (permalink)  
Old January 14th, 2016, 11:14 AM
jhad jhad is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning Perl book: NaN vs 0

In chapter 2, code string4.plx the output given for the code

Code:
#!/usr/bin/perl
#string4.plx
use warnings;
print "Ba". "na"x4*3, "\n";
print "Ba". "na"x(4*3), "\n";
is

Ba0
Banananananananananananana

but running this on Strawberry Perl 5.22.2 for Windows 10 gives

BaNaN
Banananananananananananana

What's changed from the Perl point of view?
Reply With Quote