Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Perl
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 14th, 2016, 10:14 AM
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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning Perl Book Capture::Tiny Question NeilH Perl 1 January 6th, 2016 10:54 AM
NaN... is it in the book? rebman BOOK: Beginning HTML, XHTML, CSS, and JavaScript 4 July 22nd, 2010 09:25 PM
Beginning Perl toma All Other Wrox Books 6 August 10th, 2005 11:22 AM
what's download code for book "Beginning perl"? Richard2005 Forum and Wrox.com Feedback 2 February 16th, 2004 07:52 PM



All times are GMT -4. The time now is 11:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.